Skip to content

Instantly share code, notes, and snippets.

@bearlikelion
Last active May 17, 2025 05:20
Show Gist options
  • Save bearlikelion/98cf79628ec295e73eb48aced40123d4 to your computer and use it in GitHub Desktop.
Save bearlikelion/98cf79628ec295e73eb48aced40123d4 to your computer and use it in GitHub Desktop.
Ignore godot's --script command line argument
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