@@ -185,7 +185,7 @@ void SongList::ScanFolder(const std::filesystem::path &folder) {
185185 std::filesystem::path infoPath = folder / " info.json" ;
186186 if (std::filesystem::exists (infoPath)) {
187187 Song song;
188- song.songInfoPath = ( folder / " info.json" ) ;
188+ song.songInfoPath = folder / " info.json" ;
189189 song.songDir = folder.string ();
190190 for (auto &file : std::filesystem::directory_iterator (folder)) {
191191 if (file.path ().stem () == " cover" ) {
@@ -197,7 +197,7 @@ void SongList::ScanFolder(const std::filesystem::path &folder) {
197197 songs.push_back (std::move (song));
198198 } else if (std::filesystem::exists (folder / " song.ini" )) {
199199 Song song;
200- song.songInfoPath = ( folder / " song.ini" ). string () ;
200+ song.songInfoPath = folder / " song.ini" ;
201201 song.songDir = folder.string ();
202202 song.LoadSongIni (folder);
203203 song.ini = true ;
@@ -371,23 +371,23 @@ void SongList::LoadCache(const std::vector<std::filesystem::path> &songsFolder)
371371
372372 jsonHashNew = picosha2::hash256_hex_string (jsonString);
373373 }
374-
375- if (song.jsonHash != jsonHashNew) {
376- continue ;
377- }
374+ // todo: FIX THIS
375+ // if (song.jsonHash != jsonHashNew) {
376+ // continue;
377+ // }
378378 loadedSongs.insert (song.songDir );
379- songs.push_back ( std::move ( song) );
379+ this -> songs .emplace_back ( song);
380380
381381 }
382382
383383 SongCacheIn.close ();
384384 size_t loadedSongCount = songs.size ();
385385
386386
387- if (cachedSongCount != loadedSongCount || songs.size () != loadedSongCount) {
388- Encore::EncoreLog (LOG_INFO, " CACHE: Updating song cache" );
389- WriteCache ();
390- }
387+ // if (cachedSongCount != loadedSongCount || songs.size() != loadedSongCount) {
388+ // Encore::EncoreLog(LOG_INFO, "CACHE: Updating song cache");
389+ // WriteCache();
390+ // }
391391
392392 // ScanSongs(songsFolder);
393393 sortList (SortType::Title);
0 commit comments