DEV9: ensure DEV9 use wchar ghc

This commit is contained in:
Gauvain 'GovanifY' Roussel-Tarbouriech 2021-05-10 18:24:58 +02:00 committed by lightningterror
parent fad389faab
commit ead1243c61
1 changed files with 1 additions and 5 deletions

View File

@ -1089,11 +1089,7 @@ void ApplyConfigIfRunning(Config oldConfig)
//Hdd
//Hdd Validate Path
#ifdef _WIN32
ghc::filesystem::path hddPath(std::wstring(config.Hdd));
#else
ghc::filesystem::path hddPath(config.Hdd);
#endif
if (hddPath.empty())
config.hddEnable = false;
@ -1101,7 +1097,7 @@ void ApplyConfigIfRunning(Config oldConfig)
if (hddPath.is_relative())
{
//GHC uses UTF8 on all platforms
ghc::filesystem::path path(GetSettingsFolder().ToUTF8().data());
ghc::filesystem::path path(GetSettingsFolder().ToString().wx_str());
hddPath = path / hddPath;
}