File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ void Utils::popualteSongToSongDataMap() {
478478 if (std::ranges::find (blacklist.begin (), blacklist.end (), song) != blacklist.end ()) songType = SongType::Blacklisted;
479479 else if (std::ranges::find (favorites.begin (), favorites.end (), song) != favorites.end ()) songType = SongType::Favorited;
480480
481- const std::filesystem::path& theirPath = Utils::toProblematicString (song);
481+ const std::filesystem::path& theirPath = Utils::toProblematicString (std::string ( song) );
482482 std::uintmax_t fileSize = std::filesystem::file_size (theirPath, ec);
483483 std::filesystem::file_time_type fileTime = std::filesystem::last_write_time (theirPath, ed);
484484 SongData songData = {
@@ -645,8 +645,8 @@ std::string Utils::toNormalizedString(const std::filesystem::path& path) {
645645std::filesystem::path Utils::toProblematicString (const std::string_view path) {
646646 #ifdef GEODE_IS_WINDOWS
647647 /* TODO FOR GEODE V5: SWAP COMMENTED LINES */
648- // return std::filesystem::path(geode::utils::string::utf8ToWide(std::string( path) ).unwrapOr(""));
649- return std::filesystem::path (geode::utils::string::utf8ToWide (std::string ( path) ));
648+ // return std::filesystem::path(geode::utils::string::utf8ToWide(path).unwrapOr(""));
649+ return std::filesystem::path (geode::utils::string::utf8ToWide (path));
650650 #else
651651 return std::filesystem::path (path);
652652 #endif
You can’t perform that action at this time.
0 commit comments