mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 01:21:26 +00:00
Ignore process serial number (-psn_...) command line argument passed by macOS Gatekeeper.
(cherry picked from commit e92a14ac5f)
This commit is contained in:
parent
7607fafda1
commit
acfd8b67bd
1 changed files with 8 additions and 0 deletions
|
|
@ -427,6 +427,14 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
||||||
|
|
||||||
I = args.front();
|
I = args.front();
|
||||||
while (I) {
|
while (I) {
|
||||||
|
#ifdef OSX_ENABLED
|
||||||
|
// Ignore the process serial number argument passed by macOS Gatekeeper.
|
||||||
|
// Otherwise, Godot would try to open a non-existent project on the first start and abort.
|
||||||
|
if (I->get().begins_with("-psn_")) {
|
||||||
|
I = I->next();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
List<String>::Element *N = I->next();
|
List<String>::Element *N = I->next();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue