From 150125f411bf2194dd127f8048ff6c81d2f87c98 Mon Sep 17 00:00:00 2001 From: cw Date: Sat, 17 May 2014 19:11:12 +0800 Subject: [PATCH 1/2] fixed mac relaunch bug --- .../frameworks/runtime-src/proj.ios_mac/mac/SimulatorApp.mm | 3 +++ templates/lua-template-runtime/runtime/config.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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..bd194c99a8 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":"20853320", "repo_name":"cocos-runtime-bin", "repo_parent":"https://github.com/chukong/" } From c7591511f768c69ddaacba335be17cf4deaf61f5 Mon Sep 17 00:00:00 2001 From: cw Date: Sat, 17 May 2014 19:38:15 +0800 Subject: [PATCH 2/2] fixed version num --- templates/lua-template-runtime/runtime/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lua-template-runtime/runtime/config.json b/templates/lua-template-runtime/runtime/config.json index bd194c99a8..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.1", - "zip_file_size":"20853320", + "zip_file_size":"20853321", "repo_name":"cocos-runtime-bin", "repo_parent":"https://github.com/chukong/" }