Last active
May 17, 2025 05:20
-
-
Save bearlikelion/98cf79628ec295e73eb48aced40123d4 to your computer and use it in GitHub Desktop.
Ignore godot's --script command line argument
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/main/main.cpp b/main/main.cpp | |
index 1c7955f089..8a37d67eb7 100644 | |
--- a/main/main.cpp | |
+++ b/main/main.cpp | |
@@ -3700,7 +3700,8 @@ int Main::start() { | |
else if (E->next()) { | |
bool parsed_pair = true; | |
if (E->get() == "-s" || E->get() == "--script") { | |
- script = E->next()->get(); | |
+ script = ""; | |
} else if (E->get() == "--main-loop") { | |
main_loop_type = E->next()->get(); | |
#ifdef TOOLS_ENABLED |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment