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