#include using namespace geode::prelude; #include struct SaveLoader : Modify { void trySaveGame() { log::info("Saving mod data..."); log::pushNest(); auto begin = std::chrono::high_resolution_clock::now(); (void)Loader::get()->saveData(); auto end = std::chrono::high_resolution_clock::now(); auto time = std::chrono::duration_cast(end - begin).count(); log::info("Took {}s", static_cast(time) / 1000.f); log::popNest(); return AppDelegate::trySaveGame(); } };