Merge branch 'main' of https://github.com/TwilitRealm/dusk into randomizer

This commit is contained in:
gymnast86
2026-05-03 05:34:18 -07:00
81 changed files with 7223 additions and 544 deletions
+19
View File
@@ -42,6 +42,7 @@
#if TARGET_PC
#include "dusk/memory.h"
#include "dusk/randomizer/game/tools.h"
#include <dusk/autosave.h>
#endif
#if DEBUG
@@ -701,6 +702,10 @@ static u8 lbl_8074CAE4;
static u32 l_sceneChangeStartTick;
#endif
#if TARGET_PC
static BOOL autoSaved;
#endif
static int dScnPly_Execute(dScnPly_c* i_this) {
#if DEBUG
fapGm_HIO_c::startCpuTimer();
@@ -743,6 +748,15 @@ static int dScnPly_Execute(dScnPly_c* i_this) {
}
}
#if TARGET_PC
if (!dComIfGp_event_runCheck() && !fopOvlpM_IsPeek() && !dComIfG_resetToOpening(i_this) &&
!dComIfGp_isEnableNextStage() && autoSaved == FALSE)
{
triggerAutoSave();
autoSaved = TRUE;
}
#endif
dKy_itudemo_se();
#if DEBUG
@@ -1594,6 +1608,11 @@ static int dScnPly_Create(scene_class* i_this) {
dScnPly_c* a_this = (dScnPly_c*)i_this;
int phase_state = dComLbG_PhaseHandler(&a_this->field_0x1c4, l_method, a_this);
#if TARGET_PC
autoSaved = FALSE;
#endif
return phase_state;
}