Revert "[Hotfix] fs::exists(fs::path{name}) does not work for Chinese characters in windows"

This reverts commit 801025c166.
This commit is contained in:
Akkadius
2024-02-10 04:01:00 -06:00
parent 801025c166
commit 718a157c06
+1 -3
View File
@@ -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});
}
/**