axmol/template/multi-platform-js-runtime/framework/proj.ios_mac/Runtime_ios-mac.mm

29 lines
486 B
Plaintext

#include <string>
#include <vector>
using namespace std;
string getProjSearchPath()
{
NSString *bundlePath = [[NSBundle mainBundle] resourcePath];
if (bundlePath != nil) {
return [bundlePath UTF8String];
}
return "";
}
vector<string> getSearchPath()
{
vector<string> searchPathArray;
return searchPathArray;
}
string getDotWaitFilePath()
{
string dotwaitFile;
dotwaitFile = getProjSearchPath();
dotwaitFile += "/.wait";
return dotwaitFile;
}