#include USE_GEODE_NAMESPACE(); #include struct SaveLoader : Modify { void trySaveGame() { log::log(Severity::Info, Loader::getInternalMod(), "Saving..."); auto r = Loader::get()->saveData(); if (!r) { log::log(Severity::Error, Loader::getInternalMod(), "{}", r.error()); } log::log(Severity::Info, Loader::getInternalMod(), "Saved"); return AppDelegate::trySaveGame(); } };