mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-03 12:46:51 -05:00
19 lines
536 B
C++
19 lines
536 B
C++
#include <Geode/loader/Loader.hpp>
|
|
|
|
USE_GEODE_NAMESPACE();
|
|
|
|
#include <Geode/modify/AppDelegate.hpp>
|
|
class $modify(AppDelegate) {
|
|
void trySaveGame() {
|
|
log::log(Severity::Info, Loader::getInternalMod(), "Saving...");
|
|
|
|
auto r = Loader::get()->saveSettings();
|
|
if (!r) {
|
|
log::log(Severity::Error, Loader::getInternalMod(), "{}", r.error());
|
|
}
|
|
|
|
log::log(Severity::Info, Loader::getInternalMod(), "Saved");
|
|
|
|
return AppDelegate::trySaveGame();
|
|
}
|
|
};
|