Files
harmonizer_plugin/JuceLibraryCode/BinaryData.cpp
michalcourson 720a013ff3 initial
2025-10-04 10:09:14 -04:00

97 lines
2.6 KiB
C++

/* ==================================== JUCER_BINARY_RESOURCE ====================================
This is an auto-generated file: Any edits you make may be overwritten!
*/
#include <cstring>
namespace BinaryData
{
//================== webviewplugin-gui-fallback.html ==================
static const unsigned char temp_binary_data_0[] =
"<!DOCTYPE html>\r\n"
"<html>\r\n"
" <head>\r\n"
" <meta charset=\"UTF-8\" />\r\n"
" <title>WebViewPluginDemo</title>\r\n"
" <style type=\"text/css\">\r\n"
" body {\r\n"
" background-color: white;\r\n"
" }\r\n"
" </style>\r\n"
" </head>\r\n"
" <body>\r\n"
" <h1>WebViewPluginDemo</h1>\r\n"
" <p>\r\n"
" This document is a placeholder for the GUI component of the\r\n"
" WebViewPluginDemo.\r\n"
" </p>\r\n"
" <p>\r\n"
" To build the fully fledged user interface you need to install\r\n"
" <a href=\"https://nodejs.org\">node.js</a>\r\n"
" </p>\r\n"
" <p>\r\n"
" Then navigate into the\r\n"
" <code>examples/Plugins/WebViewPluginDemoGUI</code> directory inside your JUCE\r\n"
" directory, and issue the following commands.\r\n"
" </p>\r\n"
" <pre>\r\n"
" npm install\r\n"
" npm run build\r\n"
" npm run zip\r\n"
" </pre\r\n"
" >\r\n"
" <p>\r\n"
" This will build the full GUI package and place it in the\r\n"
" <code>Assets</code> directory.\r\n"
" </p>\r\n"
" <p>After this, rebuild and restart this demo.</p>\r\n"
" </body>\r\n"
"</html>\r\n";
const char* webviewpluginguifallback_html = (const char*) temp_binary_data_0;
const char* getNamedResource (const char* resourceNameUTF8, int& numBytes);
const char* getNamedResource (const char* resourceNameUTF8, int& numBytes)
{
unsigned int hash = 0;
if (resourceNameUTF8 != nullptr)
while (*resourceNameUTF8 != 0)
hash = 31 * hash + (unsigned int) *resourceNameUTF8++;
switch (hash)
{
case 0xcc2651f9: numBytes = 982; return webviewpluginguifallback_html;
default: break;
}
numBytes = 0;
return nullptr;
}
const char* namedResourceList[] =
{
"webviewpluginguifallback_html"
};
const char* originalFilenames[] =
{
"webviewplugin-gui-fallback.html"
};
const char* getNamedResourceOriginalFilename (const char* resourceNameUTF8);
const char* getNamedResourceOriginalFilename (const char* resourceNameUTF8)
{
for (unsigned int i = 0; i < (sizeof (namedResourceList) / sizeof (namedResourceList[0])); ++i)
if (strcmp (namedResourceList[i], resourceNameUTF8) == 0)
return originalFilenames[i];
return nullptr;
}
}