Merge pull request #63170 from KoBeWi/main_failed

This commit is contained in:
Rémi Verschelde 2022-07-20 22:33:18 +02:00 committed by GitHub
commit 5db878a76e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1044,10 +1044,9 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
if (I->next()) { if (I->next()) {
String p = I->next()->get(); String p = I->next()->get();
if (OS::get_singleton()->set_cwd(p) == OK) { if (OS::get_singleton()->set_cwd(p) != OK) {
//nothing OS::get_singleton()->print("Invalid project path specified: \"%s\", aborting.\n", p.utf8().get_data());
} else { goto error;
project_path = I->next()->get(); //use project_path instead
} }
N = I->next()->next(); N = I->next()->next();
} else { } else {