Use Path for fullName in dirlisting. Bugfixes.

Buildfixes

UWP: Buildfix.

headless: Buildfix.

Common: Buildfix.

iOS: Buildfixes.

libretro: Buildfix.

Qt: Buildfix.
This commit is contained in:
Henrik Rydgård 2021-05-09 15:25:12 +02:00
parent ae06499a0c
commit a40b1dec5f
26 changed files with 108 additions and 127 deletions

View file

@ -827,7 +827,7 @@ void DiskCachingFileLoaderCache::GarbageCollectCacheFiles(u64 goalBytes) {
}
#ifdef _WIN32
const std::wstring w32path = ConvertUTF8ToWString(file.fullName);
const std::wstring w32path = file.fullName.ToWString();
bool success = DeleteFileW(w32path.c_str()) != 0;
#else
bool success = unlink(file.fullName.c_str()) == 0;