#include using namespace geode::prelude; #include struct SaveLoader : Modify { void trySaveGame() { log::info("Saving..."); auto r = Loader::get()->saveData(); if (!r) { log::info("{}", r.unwrapErr()); } log::info("Saved"); return AppDelegate::trySaveGame(); } };