can run dolphin by double clicking (osx)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1428 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-12-07 21:13:26 +00:00
parent 50c215a067
commit cd24b37924

View File

@ -117,6 +117,15 @@ bool DolphinApp::OnInit()
{wxCMD_LINE_NONE}
};
#if defined(__APPLE__)
// HACK: Get rid of bogous osx param
if (argc > 1 && wxString(argv[argc - 1]).StartsWith(_("-psn_"))) {
delete argv[argc-1];
argv[argc-1] = NULL;
argc--;
}
#endif
//gets the passed media files from command line
wxCmdLineParser parser(cmdLineDesc, argc, argv);
@ -339,4 +348,4 @@ void Host_SetWiiMoteConnectionState(int _State)
event.SetInt(1);
wxPostEvent(main_frame, event);
}
}