mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
[Hotfix] fs::exists(fs::path{name}) does not work for Chinese characters in windows
This commit is contained in:
parent
91f5932c6d
commit
801025c166
@ -47,7 +47,9 @@ namespace fs = std::filesystem;
|
||||
*/
|
||||
bool File::Exists(const std::string &name)
|
||||
{
|
||||
return fs::exists(fs::path{name});
|
||||
// fs::exists(fs::path{name}) does not work for Chinese characters in windows
|
||||
std::ifstream f(name);
|
||||
return f.good();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user