mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Fix forwarding of CLI arguments taking an option
This commit is contained in:
parent
629524c7a2
commit
335a4099de
@ -725,11 +725,16 @@ 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() == "--single-window") {
|
||||
forwardable_cli_arguments[CLI_SCOPE_TOOL].push_back(I->get());
|
||||
}
|
||||
if (I->get() == "--audio-driver" ||
|
||||
I->get() == "--display-driver" ||
|
||||
I->get() == "--rendering-driver") {
|
||||
forwardable_cli_arguments[CLI_SCOPE_TOOL].push_back(I->get());
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user