mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-25 23:13:35 +00:00
fix: normalize mixed slashes when looking for files (#1654)
This commit is contained in:
parent
53877a0bc3
commit
17f81d13a3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user