mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
(Windows) Fixed an issue where filenames containing multi-byte Unicode characters could not be used with the %INJECT% variable
This commit is contained in:
parent
bdebe0133c
commit
1fdcc43644
|
@ -1605,7 +1605,11 @@ void FileData::launchGame()
|
|||
<< "\"";
|
||||
std::string arguments;
|
||||
std::ifstream injectFileStream;
|
||||
#if defined(_WIN64)
|
||||
injectFileStream.open(Utils::String::stringToWideString(injectFile));
|
||||
#else
|
||||
injectFileStream.open(injectFile);
|
||||
#endif
|
||||
for (std::string line; getline(injectFileStream, line);) {
|
||||
// Remove Windows carriage return characters.
|
||||
line = Utils::String::replace(line, "\r", "");
|
||||
|
|
Loading…
Reference in a new issue