mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Abort running if --path does not exist
This commit is contained in:
parent
00c0fbb8cf
commit
5b47489bf8
@ -1044,10 +1044,9 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
||||
|
||||
if (I->next()) {
|
||||
String p = I->next()->get();
|
||||
if (OS::get_singleton()->set_cwd(p) == OK) {
|
||||
//nothing
|
||||
} else {
|
||||
project_path = I->next()->get(); //use project_path instead
|
||||
if (OS::get_singleton()->set_cwd(p) != OK) {
|
||||
OS::get_singleton()->print("Invalid project path specified: \"%s\", aborting.\n", p.utf8().get_data());
|
||||
goto error;
|
||||
}
|
||||
N = I->next()->next();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user