mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-03-18 18:02:49 +01:00
Fixing launching for mame (launch from emulator cwd)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user