From 6962fd91c6c03ceec91e8f25242ca5c638dfea03 Mon Sep 17 00:00:00 2001 From: Ariel Manzur Date: Fri, 29 Apr 2016 10:45:31 -0300 Subject: rate url on iOS and properly launching from .app on OSX --- platform/iphone/ios.mm | 4 +++- platform/osx/godot_main_osx.mm | 10 +++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'platform') diff --git a/platform/iphone/ios.mm b/platform/iphone/ios.mm index 882002a292..deb63feacf 100644 --- a/platform/iphone/ios.mm +++ b/platform/iphone/ios.mm @@ -26,8 +26,10 @@ String iOS::get_rate_url(int p_app_id) const { ret = templ_iOS8; } - ret = ret.replace("APP_ID", String::num(p_app_id)); + // ios7 for everything? + ret = templ_iOS7.replace("APP_ID", String::num(p_app_id)); + printf("returning rate url %ls\n", ret.c_str()); return ret; }; diff --git a/platform/osx/godot_main_osx.mm b/platform/osx/godot_main_osx.mm index 391fd1f74a..7beb5248b4 100644 --- a/platform/osx/godot_main_osx.mm +++ b/platform/osx/godot_main_osx.mm @@ -36,6 +36,14 @@ int main(int argc, char** argv) { + int first_arg = 1; + const char* dbg_arg = "-NSDocumentRevisionsDebugMode"; + printf("arguments\n"); + for (int i=0; i=1 && argv[0][0]=='/') { @@ -74,7 +82,7 @@ int main(int argc, char** argv) { OS_OSX os; - Error err = Main::setup(argv[0],argc-1,&argv[1]); + Error err = Main::setup(argv[0],argc-first_arg,&argv[first_arg]); if (err!=OK) return 255; -- cgit v1.2.3