(Windows) Converted forward slashes to backslashes for two CollectionSystemsManager log messages

This commit is contained in:
Leon Styhre 2023-06-26 22:38:40 +02:00
parent 0c035a2396
commit 677f0d600f

View file

@ -1277,7 +1277,12 @@ void CollectionSystemsManager::populateCustomCollection(CollectionSystemData* sy
CollectionFileData* newGame = new CollectionFileData(it->second, newSys); CollectionFileData* newGame = new CollectionFileData(it->second, newSys);
if (!newGame->getCountAsGame()) { if (!newGame->getCountAsGame()) {
LOG(LogWarning) LOG(LogWarning)
#if defined(_WIN64)
<< "File \"" << Utils::String::replace(gameKey, "/", "\\")
#else
<< "File \"" << gameKey << "File \"" << gameKey
#endif
<< "\" does not exist, is hidden, or is not counted as a game, ignoring entry"; << "\" does not exist, is hidden, or is not counted as a game, ignoring entry";
delete newGame; delete newGame;
} }
@ -1288,7 +1293,11 @@ void CollectionSystemsManager::populateCustomCollection(CollectionSystemData* sy
} }
else { else {
LOG(LogWarning) LOG(LogWarning)
#if defined(_WIN64)
<< "File \"" << Utils::String::replace(gameKey, "/", "\\")
#else
<< "File \"" << gameKey << "File \"" << gameKey
#endif
<< "\" does not exist, is hidden, or is not counted as a game, ignoring entry"; << "\" does not exist, is hidden, or is not counted as a game, ignoring entry";
} }
} }