Skip to content

Commit

Permalink
add saving logic + move json parse to loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Feb 4, 2024
1 parent 7b4bda9 commit aba1aa6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
// hello :)

#include "Geode/loader/ModEvent.hpp"
#include "managers/nong_manager.hpp"

$execute {
$on_mod(Loaded) {
NongManager::get()->loadSongs();
};
};

$on_mod(DataSaved) {
NongManager::get()->writeJson();
}

0 comments on commit aba1aa6

Please sign in to comment.