You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix forwarding of CLI arguments taking an option
(cherry picked from commit 335a4099de)
This commit is contained in:
committed by
Rémi Verschelde
parent
9644e9a046
commit
5d0cd8659b
@@ -509,10 +509,12 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
||||
forwardable_cli_arguments[CLI_SCOPE_TOOL].push_back(I->get());
|
||||
forwardable_cli_arguments[CLI_SCOPE_PROJECT].push_back(I->get());
|
||||
}
|
||||
if (I->get() == "--single-window" ||
|
||||
I->get() == "--audio-driver" ||
|
||||
if (I->get() == "--audio-driver" ||
|
||||
I->get() == "--video-driver") {
|
||||
if (I->next()) {
|
||||
forwardable_cli_arguments[CLI_SCOPE_TOOL].push_back(I->get());
|
||||
forwardable_cli_arguments[CLI_SCOPE_TOOL].push_back(I->next()->get());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user