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}); } /**