Use u8 strings when dealing with file paths

This commit is contained in:
Hielke Morsink committed 2022-03-01 22:12:39 +01:00
1 parent 55c71b0c74
commit 6ba0a3bd49
27 files changed
+115 -120

No files matched your search

+1 -1
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))