1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-03 16:39:41 +00:00

run command in windows with quotes

This commit is contained in:
Bret Curtis 2023-05-03 14:41:14 +02:00
parent fd45e0c9ac
commit 52e33a68e1

View file

@ -42,7 +42,7 @@ int runBinary(
{
#ifdef _WIN32
std::wstringstream cmd;
cmd << binaryPath.native() << L" -i " << '"' << iniPath.native() << '"' << L" -c " << '"' << cfgPath.native()
cmd << L'"' << binaryPath.native() << L'"' << L" -i " << '"' << iniPath.native() << '"' << L" -c " << '"' << cfgPath.native()
<< '"';
return _wsystem(cmd.str().c_str());
#else