mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-27 06:13:01 +00:00
Ignore -psn* arguments on Mac OS X
Mac OS X adds an argument starting with "-psn" when launched using Finder, Dock, or a terminal using open command and not specifying arguments. It caused the opening videos to be skipped. This change mimics SDL 1.2.
This commit is contained in:
parent
cb153f2aaa
commit
983ebbb4a6
1 changed files with 6 additions and 0 deletions
|
@ -613,6 +613,12 @@ int main( int argc, char **argv )
|
||||||
// Set the initial time base
|
// Set the initial time base
|
||||||
Sys_Milliseconds( );
|
Sys_Milliseconds( );
|
||||||
|
|
||||||
|
#if MACOS_X
|
||||||
|
// This is passed if we are launched by double-clicking
|
||||||
|
if ( argc >= 2 && Q_strncmp ( argv[1], "-psn", 4 ) == 0 )
|
||||||
|
argc = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
Sys_ParseArgs( argc, argv );
|
Sys_ParseArgs( argc, argv );
|
||||||
Sys_SetBinaryPath( Sys_Dirname( argv[ 0 ] ) );
|
Sys_SetBinaryPath( Sys_Dirname( argv[ 0 ] ) );
|
||||||
Sys_SetDefaultInstallPath( DEFAULT_BASEDIR );
|
Sys_SetDefaultInstallPath( DEFAULT_BASEDIR );
|
||||||
|
|
Loading…
Reference in a new issue