From cd24b3792457da8316b62222df681049106ce1b7 Mon Sep 17 00:00:00 2001 From: nakeee Date: Sun, 7 Dec 2008 21:13:26 +0000 Subject: [PATCH] can run dolphin by double clicking (osx) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1428 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/Main.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/Src/Main.cpp b/Source/Core/DolphinWX/Src/Main.cpp index 19b9b8dce9..a8087831d0 100644 --- a/Source/Core/DolphinWX/Src/Main.cpp +++ b/Source/Core/DolphinWX/Src/Main.cpp @@ -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); -} \ No newline at end of file +}