From 718a157c063d1af3f37aa3eda417d699e5342e04 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Sat, 10 Feb 2024 04:01:00 -0600 Subject: [PATCH] Revert "[Hotfix] fs::exists(fs::path{name}) does not work for Chinese characters in windows" This reverts commit 801025c1663c6a077557f2c4cc446b9501f9ba18. --- common/file.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/file.cpp b/common/file.cpp index fc147c1f9..632d1696b 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -47,9 +47,7 @@ namespace fs = std::filesystem; */ bool File::Exists(const std::string &name) { - // fs::exists(fs::path{name}) does not work for Chinese characters in windows - std::ifstream f(name); - return f.good(); + return fs::exists(fs::path{name}); } /**