@@ -5777,8 +5777,6 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw | |||||
return 0; | return 0; | ||||
} | } | ||||
const int namedResourceListSize = 9; | |||||
const char* namedResourceList[] = | const char* namedResourceList[] = | ||||
{ | { | ||||
"brushed_aluminium_png", | "brushed_aluminium_png", | ||||
@@ -40,7 +40,7 @@ namespace BinaryData | |||||
extern const char* namedResourceList[]; | extern const char* namedResourceList[]; | ||||
// Number of elements in the namedResourceList array. | // 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 | // 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). | // return the corresponding data and its size (or a null pointer if the name isn't found). | ||||
@@ -1244,8 +1244,6 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw | |||||
return 0; | return 0; | ||||
} | } | ||||
const int namedResourceListSize = 22; | |||||
const char* namedResourceList[] = | const char* namedResourceList[] = | ||||
{ | { | ||||
"AudioPluginXCodeScript_txt", | "AudioPluginXCodeScript_txt", | ||||
@@ -79,7 +79,7 @@ namespace BinaryData | |||||
extern const char* namedResourceList[]; | extern const char* namedResourceList[]; | ||||
// Number of elements in the namedResourceList array. | // 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 | // 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). | // return the corresponding data and its size (or a null pointer if the name isn't found). | ||||
@@ -163,7 +163,7 @@ bool ResourceFile::writeHeader (MemoryOutputStream& header) | |||||
<< " extern const char* namedResourceList[];" << newLine | << " extern const char* namedResourceList[];" << newLine | ||||
<< newLine | << newLine | ||||
<< " // Number of elements in the namedResourceList array." << newLine | << " // Number of elements in the namedResourceList array." << newLine | ||||
<< " extern const int namedResourceListSize;" << newLine | |||||
<< " const int namedResourceListSize = " << files.size() << ";" << newLine | |||||
<< newLine | << newLine | ||||
<< " // If you provide the name of one of the binary resource variables above, this function will" << 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 | << " // 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 | << " return 0;" << newLine | ||||
<< "}" << newLine | << "}" << newLine | ||||
<< newLine | << newLine | ||||
<< "const int namedResourceListSize = " << files.size() << ";" << newLine | |||||
<< newLine | |||||
<< "const char* namedResourceList[] =" << newLine | << "const char* namedResourceList[] =" << newLine | ||||
<< "{" << newLine; | << "{" << newLine; | ||||