mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-25 03:10:31 +00:00
Fix copy paste error with that breaks controlconfig passing via cmdline
This was discovered by fgeds here: http://forums.ppsspp.org/showthread.php?tid=13655 so all props go to him.
This commit is contained in:
parent
d1dbd47172
commit
a8b595c4d3
@ -416,7 +416,7 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
|
||||
if (wideArgs[i].find(controlsOption) != std::wstring::npos && wideArgs[i].size() > controlsOption.size()) {
|
||||
const std::wstring tempWide = wideArgs[i].substr(configOption.size());
|
||||
const std::string tempStr = ConvertWStringToUTF8(tempWide);
|
||||
std::strncpy(configFilename, tempStr.c_str(), MAX_PATH);
|
||||
std::strncpy(controlsConfigFilename, tempStr.c_str(), MAX_PATH);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user