From 1cc257658fbe78c4b974ead379e574668e3c597d Mon Sep 17 00:00:00 2001 From: emb <> Date: Mon, 9 Mar 2015 18:40:51 -0500 Subject: [PATCH] Fixing launching for mame (launch from emulator cwd) --- RetroFE/Source/Execute/Launcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RetroFE/Source/Execute/Launcher.cpp b/RetroFE/Source/Execute/Launcher.cpp index 0b949e6..4a7b4dd 100644 --- a/RetroFE/Source/Execute/Launcher.cpp +++ b/RetroFE/Source/Execute/Launcher.cpp @@ -151,7 +151,7 @@ bool Launcher::ExecuteCommand(std::string executable, std::string args, std::str startupInfo.hStdInput = GetStdHandle(STD_INPUT_HANDLE); startupInfo.wShowWindow = SW_SHOWDEFAULT; - if(!CreateProcess(NULL, applicationName, NULL, NULL, FALSE, CREATE_NO_WINDOW, NULL, NULL, &startupInfo, &processInfo)) + if(!CreateProcess(NULL, applicationName, NULL, NULL, FALSE, CREATE_NO_WINDOW, NULL, currDir, &startupInfo, &processInfo)) #else if(system(executionString.c_str()) != 0) #endif