1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Re-saved all projects

This commit is contained in:
ed 2018-03-29 14:51:26 +01:00
parent dd7d3c41d0
commit db8fa5a4b4
12 changed files with 684 additions and 580 deletions

View file

@ -657,8 +657,7 @@ static const unsigned char temp_binary_data_0[] =
const char* juce_icon_png = (const char*) temp_binary_data_0;
const char* getNamedResource (const char*, int&) throw();
const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw()
const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) noexcept
{
unsigned int hash = 0;
if (resourceNameUTF8 != 0)
@ -672,7 +671,7 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw
}
numBytes = 0;
return 0;
return nullptr;
}
const char* namedResourceList[] =
@ -680,4 +679,20 @@ const char* namedResourceList[] =
"juce_icon_png"
};
const char* originalFilenames[] =
{
"juce_icon.png"
};
const char* getNamedResourceOriginalFilename (const char* resourceNameUTF8) noexcept
{
for (unsigned int i = 0; i < (sizeof (namedResourceList) / sizeof (namedResourceList[0])); ++i)
{
if (namedResourceList[i] == resourceNameUTF8)
return originalFilenames[i];
}
return nullptr;
}
}

View file

@ -11,13 +11,20 @@ namespace BinaryData
extern const char* juce_icon_png;
const int juce_icon_pngSize = 45854;
// Number of elements in the namedResourceList and originalFileNames arrays.
const int namedResourceListSize = 1;
// Points to the start of a list of resource names.
extern const char* namedResourceList[];
// Number of elements in the namedResourceList array.
const int namedResourceListSize = 1;
// Points to the start of a list of resource filenames.
extern const char* originalFilenames[];
// 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).
const char* getNamedResource (const char* resourceNameUTF8, int& dataSizeInBytes) throw();
const char* getNamedResource (const char* resourceNameUTF8, int& dataSizeInBytes) noexcept;
// If you provide the name of one of the binary resource variables above, this function will
// return the corresponding original, non-mangled filename (or a null pointer if the name isn't found).
const char* getNamedResourceOriginalFilename (const char* resourceNameUTF8) noexcept;
}