aboutsummaryrefslogtreecommitdiff
path: root/src/FATStorage.cpp
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2021-10-28 23:51:25 +0200
committerArisotura <thetotalworm@gmail.com>2021-10-28 23:51:25 +0200
commitead8d1b62926883e4d052db63a3f2e3d90e8fb30 (patch)
treef992e1b0755e8bc37055c8d46d11eb43c90d686f /src/FATStorage.cpp
parent8b59c73c01e78271124e688825859c9df82e37c7 (diff)
more UTF8 shenanigans huh
Diffstat (limited to 'src/FATStorage.cpp')
-rw-r--r--src/FATStorage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FATStorage.cpp b/src/FATStorage.cpp
index df2974f..5228938 100644
--- a/src/FATStorage.cpp
+++ b/src/FATStorage.cpp
@@ -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);