#include using namespace geode::prelude; #include struct SaveLoader : Modify { void trySaveGame(bool p0) { 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(p0); } };