Fixing launching for mame (launch from emulator cwd)

This commit is contained in:
emb 2015-03-09 18:40:51 -05:00
parent 1863ff522b
commit 1cc257658f

View File

@ -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