From e0b5d4a86c33453f9a623a729a0584ae412a0ce3 Mon Sep 17 00:00:00 2001 From: Rachel Bryk Date: Fri, 3 Oct 2014 07:39:51 -0400 Subject: [PATCH] Fix running dolphin with a single flag. --- Source/Core/DolphinWX/Main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/Main.cpp b/Source/Core/DolphinWX/Main.cpp index d8f57c0665..a712241238 100644 --- a/Source/Core/DolphinWX/Main.cpp +++ b/Source/Core/DolphinWX/Main.cpp @@ -213,7 +213,7 @@ bool DolphinApp::OnInit() // Gets the command line parameters wxCmdLineParser parser(cmdLineDesc, argc, argv); - if (argc == 2) + if (argc == 2 && File::Exists(argv[1].ToUTF8().data())) { LoadFile = true; FileToLoad = argv[1];