mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00: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
1 changed files with 10 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue