mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
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:
parent
50c215a067
commit
cd24b37924
@ -117,6 +117,15 @@ bool DolphinApp::OnInit()
|
|||||||
{wxCMD_LINE_NONE}
|
{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
|
//gets the passed media files from command line
|
||||||
wxCmdLineParser parser(cmdLineDesc, argc, argv);
|
wxCmdLineParser parser(cmdLineDesc, argc, argv);
|
||||||
|
|
||||||
@ -339,4 +348,4 @@ void Host_SetWiiMoteConnectionState(int _State)
|
|||||||
event.SetInt(1);
|
event.SetInt(1);
|
||||||
|
|
||||||
wxPostEvent(main_frame, event);
|
wxPostEvent(main_frame, event);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user