(Windows) Fixed a cosmetic log output issue when loading the game systems.

This commit is contained in:
Leon Styhre 2021-02-07 11:46:02 +01:00
parent a7ed75b18c
commit 9be90fa39a

View file

@ -256,7 +256,11 @@ bool SystemData::loadConfig()
// the ROM path configured as ROMDirectory in es_settings.cfg. If it's set to "" // the ROM path configured as ROMDirectory in es_settings.cfg. If it's set to ""
// in this configuration file, the default hardcoded path $HOME/ROMs/ will be used. // in this configuration file, the default hardcoded path $HOME/ROMs/ will be used.
path = Utils::String::replace(path, "%ROMPATH%", rompath); path = Utils::String::replace(path, "%ROMPATH%", rompath);
#if defined(_WIN64)
path = Utils::String::replace(path, "\\", "/");
#else
path = Utils::String::replace(path, "//", "/"); path = Utils::String::replace(path, "//", "/");
#endif
// Check that the ROM directory for the system is valid or otherwise abort the processing. // Check that the ROM directory for the system is valid or otherwise abort the processing.
if (!Utils::FileSystem::exists(path)) { if (!Utils::FileSystem::exists(path)) {