parent
6916349697
commit
22b00e392e
|
@ -1542,7 +1542,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
||||||
OS::get_singleton()->print("Missing <path> argument for --benchmark-file <path>.\n");
|
OS::get_singleton()->print("Missing <path> argument for --benchmark-file <path>.\n");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
#if defined(TOOLS_ENABLED) && !defined(GDSCRIPT_NO_LSP)
|
#if defined(TOOLS_ENABLED) && defined(MODULE_GDSCRIPT_ENABLED) && !defined(GDSCRIPT_NO_LSP)
|
||||||
} else if (I->get() == "--lsp-port") {
|
} else if (I->get() == "--lsp-port") {
|
||||||
if (I->next()) {
|
if (I->next()) {
|
||||||
int port_override = I->next()->get().to_int();
|
int port_override = I->next()->get().to_int();
|
||||||
|
@ -1556,7 +1556,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
||||||
OS::get_singleton()->print("Missing <port> argument for --lsp-port <port>.\n");
|
OS::get_singleton()->print("Missing <port> argument for --lsp-port <port>.\n");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
#endif // TOOLS_ENABLED && !GDSCRIPT_NO_LSP
|
#endif // TOOLS_ENABLED && MODULE_GDSCRIPT_ENABLED && !GDSCRIPT_NO_LSP
|
||||||
} else if (I->get() == "--" || I->get() == "++") {
|
} else if (I->get() == "--" || I->get() == "++") {
|
||||||
adding_user_args = true;
|
adding_user_args = true;
|
||||||
} else {
|
} else {
|
||||||
|
@ -2857,7 +2857,11 @@ bool Main::start() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
|
#ifdef MODULE_GDSCRIPT_ENABLED
|
||||||
if (!doc_tool_path.is_empty() && gdscript_docs_path.is_empty()) {
|
if (!doc_tool_path.is_empty() && gdscript_docs_path.is_empty()) {
|
||||||
|
#else
|
||||||
|
if (!doc_tool_path.is_empty()) {
|
||||||
|
#endif
|
||||||
// Needed to instance editor-only classes for their default values
|
// Needed to instance editor-only classes for their default values
|
||||||
Engine::get_singleton()->set_editor_hint(true);
|
Engine::get_singleton()->set_editor_hint(true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue