mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Revert "[Hotfix] fs::exists(fs::path{name}) does not work for Chinese characters in windows"
This reverts commit 801025c166.
This commit is contained in:
+1
-3
@@ -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});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user