1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 19:43:06 +01:00

Use u8 strings when dealing with file paths

This commit is contained in:
Hielke Morsink
2022-02-27 22:23:35 +01:00
parent 55c71b0c74
commit 6ba0a3bd49
27 changed files with 115 additions and 120 deletions

View File

@@ -585,7 +585,7 @@ private:
// Find a unique file name
auto fileName = GetFileNameForNewObject(generation, name);
auto extension = (generation == ObjectGeneration::DAT ? ".DAT" : ".parkobj");
auto extension = (generation == ObjectGeneration::DAT ? u8".DAT" : u8".parkobj");
auto fullPath = Path::Combine(userObjPath, fileName + extension);
auto counter = 1U;
while (File::Exists(fullPath))