mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-09 03:59:34 -04:00
implement item queue
This commit is contained in:
@@ -23,6 +23,11 @@
|
||||
|
||||
#include "tracy/Tracy.hpp"
|
||||
|
||||
#if TARGET_PC
|
||||
#include "dusk/randomizer/game/randomizer_context.hpp"
|
||||
#endif
|
||||
|
||||
|
||||
void fpcM_Draw(void* i_proc) {
|
||||
fpcDw_Execute((base_process_class*)i_proc);
|
||||
}
|
||||
@@ -89,6 +94,16 @@ void fpcM_Management(fpcM_ManagementFunc i_preExecuteFn, fpcM_ManagementFunc i_p
|
||||
i_preExecuteFn();
|
||||
}
|
||||
|
||||
#if TARGET_PC
|
||||
if (randomizer_IsActive()) {
|
||||
if (!g_randomizerState.mInitialized) {
|
||||
g_randomizerState._create();
|
||||
}
|
||||
g_randomizerState.execute();
|
||||
} else if (g_randomizerState.mInitialized) {
|
||||
g_randomizerState = RandomizerState{};
|
||||
}
|
||||
#endif
|
||||
if (!fapGm_HIO_c::isCaptureScreen()) {
|
||||
fpcEx_Handler((fpcLnIt_QueueFunc)fpcM_Execute);
|
||||
}
|
||||
@@ -97,6 +112,12 @@ void fpcM_Management(fpcM_ManagementFunc i_preExecuteFn, fpcM_ManagementFunc i_p
|
||||
fpcDw_Handler((fpcDw_HandlerFuncFunc)fpcM_DrawIterater, (fpcDw_HandlerFunc)fpcM_Draw);
|
||||
}
|
||||
|
||||
#if TARGET_PC
|
||||
if (randomizer_IsActive()) {
|
||||
g_randomizerState.draw();
|
||||
}
|
||||
#endif
|
||||
|
||||
if (i_postExecuteFn != NULL) {
|
||||
i_postExecuteFn();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user