From b1f80efbe3d1833ccb70c25489632ebf9cfa9dd0 Mon Sep 17 00:00:00 2001 From: Duncan Date: Sun, 12 Jul 2020 21:56:02 +0100 Subject: [PATCH] Use u8path on file path (#12205) --- src/openrct2/platform/Shared.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2/platform/Shared.cpp b/src/openrct2/platform/Shared.cpp index 358709a283..aa6c27dd3f 100644 --- a/src/openrct2/platform/Shared.cpp +++ b/src/openrct2/platform/Shared.cpp @@ -94,7 +94,8 @@ namespace Platform bool FileExists(const std::string path) { - fs::path file = path; + fs::path file = fs::u8path(path); + log_verbose("Checking if file exists: %s", path.c_str()); return fs::exists(file); } } // namespace Platform