mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
Revert "[Hotfix] fs::exists(fs::path{name}) does not work for Chinese characters in windows"
This reverts commit 801025c1663c6a077557f2c4cc446b9501f9ba18.
This commit is contained in:
parent
801025c166
commit
718a157c06
@ -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});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user