change js load path
This commit is contained in:
parent
8aa0fbba62
commit
dd4f6a1762
@ -231,6 +231,13 @@ void jsb_init_file_operation_delegate()
|
|||||||
|
|
||||||
se::ScriptEngine::getInstance()->setFileOperationDelegate(delegate);
|
se::ScriptEngine::getInstance()->setFileOperationDelegate(delegate);
|
||||||
}
|
}
|
||||||
|
std::string path = FileUtils::getInstance()->getWritablePath();
|
||||||
|
path += "luaframework/";
|
||||||
|
std::vector<std::string> searchPaths;
|
||||||
|
searchPaths.push_back(path);
|
||||||
|
searchPaths.push_back("");
|
||||||
|
FileUtils::getInstance()->setSearchPaths(searchPaths);
|
||||||
|
// FileUtils::getInstance()->addSearchResolutionsOrder(path, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool jsb_enable_debugger(const std::string& debuggerServerAddr, uint32_t port, bool isWaitForConnect)
|
bool jsb_enable_debugger(const std::string& debuggerServerAddr, uint32_t port, bool isWaitForConnect)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user