mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
(Windows) Fixed an issue where a forward slash instead of a backslash was added to the ROM directory.
This commit is contained in:
parent
f8e23a016e
commit
101c7f888f
|
@ -171,8 +171,13 @@ const std::string FileData::getROMDirectory()
|
|||
// Expand home path if ~ is used.
|
||||
romDirPath = Utils::FileSystem::expandHomePath(romDirPath);
|
||||
|
||||
#if defined(_WIN64)
|
||||
if (romDirPath.back() != '\\')
|
||||
romDirPath = romDirPath + "\\";
|
||||
#else
|
||||
if (romDirPath.back() != '/')
|
||||
romDirPath = romDirPath + "/";
|
||||
#endif
|
||||
}
|
||||
|
||||
// If %ESPATH% is used for the ROM path configuration, then expand it to the executable
|
||||
|
|
Loading…
Reference in a new issue