mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 09:35:39 +00:00
(Windows) Fixed an issue where file paths would get escaped with quotation marks even if they did not contain any spaces.
This commit is contained in:
parent
9cf4a65910
commit
0d23719fe7
|
@ -390,7 +390,10 @@ namespace Utils
|
|||
|
||||
#if defined(_WIN64)
|
||||
// Windows escapes stuff by just putting everything in quotes.
|
||||
return '"' + getPreferredPath(escapedPath) + '"';
|
||||
if (escapedPath.find(" ") != std::string::npos)
|
||||
return '"' + getPreferredPath(escapedPath) + '"';
|
||||
else
|
||||
return getPreferredPath(escapedPath);
|
||||
#else
|
||||
// Insert a backslash before most characters that would mess up a bash path.
|
||||
const char* invalidChars = "\\ '\"!$^&*(){}[]?;<>";
|
||||
|
|
Loading…
Reference in a new issue