19 lines
375 B
C++
19 lines
375 B
C++
#include <iostream>
|
|
#include "../resource/resource.h"
|
|
|
|
using namespace std;
|
|
|
|
RESOURCE_PACK(res)
|
|
|
|
int main()
|
|
{
|
|
cout << "Resource test" << endl;
|
|
Resource::ResourceMap resMap;
|
|
Resource::getResourcePack_res(resMap);
|
|
const char *str = resMap["/data/Qt_workspace/cmaketemplate/test/plop.txt"];
|
|
if(str != NULL)
|
|
cout << str << endl;
|
|
else
|
|
cout << "nope" << endl;
|
|
}
|