mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 13:21:28 +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)
|
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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user