diff --git a/templates/lua-template-runtime/frameworks/runtime-src/proj.ios_mac/mac/SimulatorApp.mm b/templates/lua-template-runtime/frameworks/runtime-src/proj.ios_mac/mac/SimulatorApp.mm index 36f6fdf08b..f682d4bd0d 100644 --- a/templates/lua-template-runtime/frameworks/runtime-src/proj.ios_mac/mac/SimulatorApp.mm +++ b/templates/lua-template-runtime/frameworks/runtime-src/proj.ios_mac/mac/SimulatorApp.mm @@ -76,6 +76,9 @@ std::string getCurAppPath(void) if (args!=nullptr && [args count]>=2) { extern std::string g_resourcePath; g_resourcePath = [[args objectAtIndex:1]UTF8String]; + if (g_resourcePath.at(0) != '/') { + g_resourcePath=""; + } } g_nsAppDelegate =self; AppDelegate app; diff --git a/templates/lua-template-runtime/runtime/config.json b/templates/lua-template-runtime/runtime/config.json index 015c2d8e4f..a137c0513b 100644 --- a/templates/lua-template-runtime/runtime/config.json +++ b/templates/lua-template-runtime/runtime/config.json @@ -1,6 +1,6 @@ { - "version":"v3-lua-runtime-1.1", - "zip_file_size":"20844080", + "version":"v3-lua-runtime-1.1.1", + "zip_file_size":"20853321", "repo_name":"cocos-runtime-bin", "repo_parent":"https://github.com/chukong/" }