Skip to content

Commit 5390649

Browse files
committed
FOR FUCK SAKE BILL
1 parent aab73d3 commit 5390649

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Utils.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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(""));

src/Utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)