Skip to content

Commit

Permalink
comment musicdownloadmanager bc it could be the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
pundang committed Jun 15, 2024
1 parent b1fa1cc commit 8063941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ class Song {
// global variables
std::vector<Song> songs;
Song selectedSong;
MusicDownloadManager *downloadManager;
// MusicDownloadManager *downloadManager;

$on_mod(Loaded) {
// get the path for the songs
std::filesystem::path ngSongsPath = CCFileUtils::get()->getWritablePath().c_str();

downloadManager = MusicDownloadManager::sharedState();
// downloadManager = MusicDownloadManager::sharedState();

// add all the mp3 files to the vector
for (auto &song : std::filesystem::directory_iterator(ngSongsPath)) {
Expand Down

0 comments on commit 8063941

Please sign in to comment.