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 +}