autosave WIP

This commit is contained in:
MelonSpeedruns
2026-04-16 19:30:37 -04:00
parent 2cc11c74b7
commit a4be0841e5
6 changed files with 127 additions and 1 deletions
+7
View File
@@ -25,7 +25,10 @@
#include "lingcod/lingcod.h"
#endif
#if TARGET_PC
#include "dusk/settings.h"
#include <f_ap/f_ap_game.h>
#endif
static u8 dSv_item_rename(u8 i_itemNo) {
switch (i_itemNo) {
@@ -343,6 +346,10 @@ void dSv_player_item_c::setItem(int i_slotNo, u8 i_itemNo) {
dComIfGp_setSelectItem(i);
}
}
#if TARGET_PC
triggerAutoSave();
#endif
}
u8 dSv_player_item_c::getItem(int i_slotNo, bool i_checkCombo) const {