diff options
author | Ariel Manzur <punto@godotengine.org> | 2016-04-29 10:45:31 -0300 |
---|---|---|
committer | Ariel Manzur <punto@godotengine.org> | 2016-04-29 10:54:25 -0300 |
commit | 6962fd91c6c03ceec91e8f25242ca5c638dfea03 (patch) | |
tree | 6d660f90f11b58245509acc11c6200d8f20f64e3 /platform/osx/godot_main_osx.mm | |
parent | de3ed61fc54b7815f0887f03ebea74381d9c0587 (diff) |
rate url on iOS and properly launching from .app on OSX
Diffstat (limited to 'platform/osx/godot_main_osx.mm')
-rw-r--r-- | platform/osx/godot_main_osx.mm | 10 |
1 files changed, 9 insertions, 1 deletions
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<argc; i++) { + if (strcmp(dbg_arg, argv[i]) == 0) + first_arg = i+2; + printf("%i: %s\n", i, argv[i]); + }; if (argc>=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; |