mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15: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.
|
// Expand home path if ~ is used.
|
||||||
romDirPath = Utils::FileSystem::expandHomePath(romDirPath);
|
romDirPath = Utils::FileSystem::expandHomePath(romDirPath);
|
||||||
|
|
||||||
|
#if defined(_WIN64)
|
||||||
|
if (romDirPath.back() != '\\')
|
||||||
|
romDirPath = romDirPath + "\\";
|
||||||
|
#else
|
||||||
if (romDirPath.back() != '/')
|
if (romDirPath.back() != '/')
|
||||||
romDirPath = romDirPath + "/";
|
romDirPath = romDirPath + "/";
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// If %ESPATH% is used for the ROM path configuration, then expand it to the executable
|
// If %ESPATH% is used for the ROM path configuration, then expand it to the executable
|
||||||
|
|
Loading…
Reference in a new issue