Browse Source

Introjucer: moved the definition of a BinaryData constant into the header file.

tags/2021-05-28
jules 11 years ago
parent
commit
45b49f84d1
5 changed files with 3 additions and 9 deletions
  1. +0
    -2
      extras/Demo/JuceLibraryCode/BinaryData.cpp
  2. +1
    -1
      extras/Demo/JuceLibraryCode/BinaryData.h
  3. +0
    -2
      extras/Introjucer/JuceLibraryCode/BinaryData.cpp
  4. +1
    -1
      extras/Introjucer/JuceLibraryCode/BinaryData.h
  5. +1
    -3
      extras/Introjucer/Source/Project Saving/jucer_ResourceFile.cpp

+ 0
- 2
extras/Demo/JuceLibraryCode/BinaryData.cpp View File

@@ -5777,8 +5777,6 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw
return 0;
}
const int namedResourceListSize = 9;
const char* namedResourceList[] =
{
"brushed_aluminium_png",


+ 1
- 1
extras/Demo/JuceLibraryCode/BinaryData.h View File

@@ -40,7 +40,7 @@ namespace BinaryData
extern const char* namedResourceList[];
// Number of elements in the namedResourceList array.
extern const int namedResourceListSize;
const int namedResourceListSize = 9;
// If you provide the name of one of the binary resource variables above, this function will
// return the corresponding data and its size (or a null pointer if the name isn't found).


+ 0
- 2
extras/Introjucer/JuceLibraryCode/BinaryData.cpp View File

@@ -1244,8 +1244,6 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw
return 0;
}
const int namedResourceListSize = 22;
const char* namedResourceList[] =
{
"AudioPluginXCodeScript_txt",


+ 1
- 1
extras/Introjucer/JuceLibraryCode/BinaryData.h View File

@@ -79,7 +79,7 @@ namespace BinaryData
extern const char* namedResourceList[];
// Number of elements in the namedResourceList array.
extern const int namedResourceListSize;
const int namedResourceListSize = 22;
// If you provide the name of one of the binary resource variables above, this function will
// return the corresponding data and its size (or a null pointer if the name isn't found).


+ 1
- 3
extras/Introjucer/Source/Project Saving/jucer_ResourceFile.cpp View File

@@ -163,7 +163,7 @@ bool ResourceFile::writeHeader (MemoryOutputStream& header)
<< " extern const char* namedResourceList[];" << newLine
<< newLine
<< " // Number of elements in the namedResourceList array." << newLine
<< " extern const int namedResourceListSize;" << newLine
<< " const int namedResourceListSize = " << files.size() << ";" << newLine
<< newLine
<< " // If you provide the name of one of the binary resource variables above, this function will" << newLine
<< " // return the corresponding data and its size (or a null pointer if the name isn't found)." << newLine
@@ -252,8 +252,6 @@ bool ResourceFile::writeCpp (MemoryOutputStream& cpp, const File& headerFile, in
<< " return 0;" << newLine
<< "}" << newLine
<< newLine
<< "const int namedResourceListSize = " << files.size() << ";" << newLine
<< newLine
<< "const char* namedResourceList[] =" << newLine
<< "{" << newLine;


Loading…
Cancel
Save