You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
529 B
26 lines
529 B
|
|
#include <string>
|
|
#include <iostream>
|
|
#include <sstream>
|
|
#include <unordered_map>
|
|
|
|
using namespace std;
|
|
|
|
${ETH_RESULT_DATA}
|
|
|
|
static unordered_map <string, const char*> eth_resources;
|
|
static unordered_map <string, unsigned> eth_sizes;
|
|
|
|
void initResources()
|
|
{
|
|
${ETH_RESULT_INIT}
|
|
//eth_resources["LICENSE"] = (char const*)eth_LICENSE;
|
|
//eth_sizes["LICENSE"] = sizeof(eth_LICENSE);
|
|
}
|
|
|
|
string loadResource(string _name)
|
|
{
|
|
ostringstream bistream;
|
|
bistream.write(eth_resources[_name], eth_sizes[_name]);
|
|
return bistream.str();
|
|
}
|
|
|