fix: normalize mixed slashes when looking for files (#1654)

This commit is contained in:
Aaron Kimbrell 2024-11-23 03:32:31 -06:00 committed by GitHub
parent 53877a0bc3
commit 17f81d13a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -160,6 +160,7 @@ std::string Zone::GetFilePathForZoneID() {
if (zone != nullptr) {
std::string toReturn = "maps/" + zone->zoneName;
std::transform(toReturn.begin(), toReturn.end(), toReturn.begin(), ::tolower);
std::ranges::replace(toReturn, '\\', '/');
return toReturn;
}