Skip to content

Commit b1a8063

Browse files
committed
Normalize plugin filename so output doesn't look wonky on Windows.
1 parent 77c7980 commit b1a8063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/musikcore/plugin/PluginFactory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void PluginFactory::LoadPlugins() {
101101
fs::directory_iterator end;
102102
for (fs::directory_iterator file(dir); file != end; file++) {
103103
if (fs::is_regular_file(file->status())){
104-
std::string filename(file->path().u8string());
104+
std::string filename(fs::path(file->path()).make_preferred().u8string());
105105

106106
std::shared_ptr<Descriptor> descriptor(new Descriptor());
107107
descriptor->filename = filename;

0 commit comments

Comments
 (0)