Skip to content

Commit a99bb47

Browse files
committed
yknow if bill gates wasnt such a fucking retard none of us would be dealing with this shit
1 parent f44a32b commit a99bb47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Utils.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {
645645
std::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

0 commit comments

Comments
 (0)