File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -478,11 +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- #ifndef GEODE_IS_WINDOWS
482481 const std::filesystem::path& theirPath = Utils::toProblematicString (song);
483- #else
484- const std::filesystem::path& theirPath = std::filesystem::path{};
485- #endif
486482
487483 std::uintmax_t fileSize = std::filesystem::file_size (theirPath, ec);
488484 std::filesystem::file_time_type fileTime = std::filesystem::last_write_time (theirPath, ed);
@@ -648,7 +644,7 @@ std::string Utils::toNormalizedString(const std::filesystem::path& path) {
648644 return geode::utils::string::pathToString (path);
649645}
650646
651- std::filesystem::path Utils::toProblematicString (const std::string_view path) {
647+ std::filesystem::path Utils::toProblematicString (const std::string& path) {
652648 #ifdef GEODE_IS_WINDOWS
653649 /* TODO FOR GEODE V5: SWAP COMMENTED LINES */
654650 // return std::filesystem::path(geode::utils::string::utf8ToWide(path).unwrapOr(""));
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class Utils {
3232 static int getSongID ();
3333 static std::string currentCustomSong ();
3434 static std::string toNormalizedString (const std::filesystem::path&);
35- static std::filesystem::path toProblematicString (const std::string_view );
35+ static std::filesystem::path toProblematicString (const std::string& );
3636 static void fadeOutCardRemotely (cocos2d::CCNode* card = Utils::findCardRemotely());
3737 static void removeCardRemotely (cocos2d::CCNode* card = Utils::findCardRemotely());
3838 static void queueUpdateFrontfacingLabelsInSCMAndSLL ();
You can’t perform that action at this time.
0 commit comments