summaryrefslogtreecommitdiff
path: root/platform/osx/godot_main_osx.mm
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-07 12:57:36 +0200
committerGitHub <noreply@github.com>2022-07-07 12:57:36 +0200
commit95ddc8cccc2ad14ff8731b96f3764c88d202f9d3 (patch)
treed57b5dd6d29de40d1c6f7cd7c2763ea8c2919987 /platform/osx/godot_main_osx.mm
parent72b3e81bdf4ecb92f52b056e0ad68a9ff6d8c63d (diff)
parent238ac2fdd5e9d93f51a32d9341c5b70eb66bb491 (diff)
Merge pull request #62808 from bruvzg/macos_file_url_handle
Diffstat (limited to 'platform/osx/godot_main_osx.mm')
-rw-r--r--platform/osx/godot_main_osx.mm9
1 files changed, 1 insertions, 8 deletions
diff --git a/platform/osx/godot_main_osx.mm b/platform/osx/godot_main_osx.mm
index 354edca096..722928ad60 100644
--- a/platform/osx/godot_main_osx.mm
+++ b/platform/osx/godot_main_osx.mm
@@ -74,14 +74,7 @@ int main(int argc, char **argv) {
// We must override main when testing is enabled.
TEST_MAIN_OVERRIDE
- if (os.get_open_with_filename() != "") {
- char *argv_c = (char *)malloc(os.get_open_with_filename().utf8().size());
- memcpy(argv_c, os.get_open_with_filename().utf8().get_data(), os.get_open_with_filename().utf8().size());
- err = Main::setup(argv[0], 1, &argv_c);
- free(argv_c);
- } else {
- err = Main::setup(argv[0], argc - first_arg, &argv[first_arg]);
- }
+ err = Main::setup(argv[0], argc - first_arg, &argv[first_arg]);
if (err == ERR_HELP) { // Returned by --help and --version, so success.
return 0;