Support running multiple instances on OS X (fix #533)

This commit is contained in:
David Capello 2014-11-30 21:00:27 -03:00
parent a8af9df74a
commit 7a4f4c9c5e
2 changed files with 4 additions and 0 deletions

View File

@ -226,8 +226,10 @@ int allegro_main(int argc, char *argv[], NSObject* app_delegate)
__crt0_argc = argc;
__crt0_argv = argv;
#if 0
if (!osx_bootstrap_ok()) /* not safe to use NSApplication */
call_user_main();
#endif
[NSApplication sharedApplication];

View File

@ -440,10 +440,12 @@ static int osx_sys_init(void)
{
long result;
#if 0
/* If we're in the 'dead bootstrap' environment, the Mac driver won't work. */
if (!osx_bootstrap_ok()) {
return -1;
}
#endif
/* Install emergency-exit signal handlers */
old_sig_abrt = signal(SIGABRT, osx_signal_handler);