From 9be90fa39a5c868f17200af9faadda364e015570 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 7 Feb 2021 11:46:02 +0100 Subject: [PATCH] (Windows) Fixed a cosmetic log output issue when loading the game systems. --- es-app/src/SystemData.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/es-app/src/SystemData.cpp b/es-app/src/SystemData.cpp index 01b65f810..a4fe8fc8b 100644 --- a/es-app/src/SystemData.cpp +++ b/es-app/src/SystemData.cpp @@ -256,7 +256,11 @@ bool SystemData::loadConfig() // 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. path = Utils::String::replace(path, "%ROMPATH%", rompath); + #if defined(_WIN64) + path = Utils::String::replace(path, "\\", "/"); + #else path = Utils::String::replace(path, "//", "/"); + #endif // Check that the ROM directory for the system is valid or otherwise abort the processing. if (!Utils::FileSystem::exists(path)) {