mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-26 15:37:16 +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)
|
bool File::Exists(const std::string &name)
|
||||||
{
|
{
|
||||||
// fs::exists(fs::path{name}) does not work for Chinese characters in windows
|
return fs::exists(fs::path{name});
|
||||||
std::ifstream f(name);
|
|
||||||
return f.good();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user