mirror of https://github.com/PCSX2/pcsx2.git
DEV9: ensure DEV9 use wchar ghc
This commit is contained in:
parent
fad389faab
commit
ead1243c61
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue