diff options
| author | Juan Linietsky | 2015-05-17 14:17:57 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-05-17 14:17:57 -0300 |
| commit | 6e85ee3a4303cee9029ec26b6584b7e1603aef05 (patch) | |
| tree | f6e7152829076c842d1c23eec8736e7cf72bb7d3 /platform/windows/godot_win.cpp | |
| parent | e72717e3738ea7fe1a2a6c9447ad0090bdf297ec (diff) | |
| download | godot-6e85ee3a4303cee9029ec26b6584b7e1603aef05.tar.gz godot-6e85ee3a4303cee9029ec26b6584b7e1603aef05.tar.zst godot-6e85ee3a4303cee9029ec26b6584b7e1603aef05.zip | |
Diffstat (limited to 'platform/windows/godot_win.cpp')
| -rw-r--r-- | platform/windows/godot_win.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/windows/godot_win.cpp b/platform/windows/godot_win.cpp index 81c90d9dd..fe3905167 100644 --- a/platform/windows/godot_win.cpp +++ b/platform/windows/godot_win.cpp @@ -135,7 +135,12 @@ int widechar_main(int argc, wchar_t** argv) { argv_utf8[i] = wc_to_utf8(argv[i]); } - Main::setup(argv_utf8[0], argc - 1, &argv_utf8[1]); + Error err = Main::setup(argv_utf8[0], argc - 1, &argv_utf8[1]); + + if (err!=OK) + return 255; + + if (Main::start()) os.run(); Main::cleanup(); |
