more UTF8 shenanigans huh

This commit is contained in:
Arisotura 2021-10-28 23:51:25 +02:00
parent 8b59c73c01
commit ead8d1b629
1 changed files with 1 additions and 1 deletions

View File

@ -836,7 +836,7 @@ bool FATStorage::ImportDirectory(std::string sourcedir)
// iterate through the host directory:
// * directories will be added if they aren't in the index
// * files will be added if they aren't in the index, or if the size or last-modified-date don't match
for (auto& entry : fs::recursive_directory_iterator(sourcedir))
for (auto& entry : fs::recursive_directory_iterator(fs::u8path(sourcedir)))
{
std::string fullpath = entry.path().u8string();
std::string innerpath = fullpath.substr(srclen);