Fix filename encoding mismatch in test code

This commit is contained in:
Oliver Hamlet
2018-10-20 12:48:20 +01:00
parent 74491931cd
commit 306ea4b996
+2 -2
View File
@@ -176,11 +176,11 @@ protected:
it != std::filesystem::directory_iterator();
++it) {
if (std::filesystem::is_regular_file(it->status())) {
std::string filename = it->path().filename().string();
std::string filename = it->path().filename().u8string();
if (filename == nonPluginFile)
continue;
if (boost::ends_with(filename, ".ghost"))
filename = it->path().stem().string();
filename = it->path().stem().u8string();
if (boost::ends_with(filename, ".esp") ||
boost::ends_with(filename, ".esm"))
loadOrder.emplace(std::filesystem::last_write_time(it->path()),