2025-06-04 14:38:33 -04:00
|
|
|
#ifndef FRAME_ADVANCE_H
|
|
|
|
|
#define FRAME_ADVANCE_H
|
2024-06-25 15:13:31 -04:00
|
|
|
|
|
|
|
|
#include "ultra64.h"
|
|
|
|
|
|
2024-06-26 20:25:33 +02:00
|
|
|
#include "config.h"
|
|
|
|
|
|
2024-06-25 15:13:31 -04:00
|
|
|
struct Input;
|
|
|
|
|
struct PlayState;
|
|
|
|
|
|
2024-08-12 00:07:48 -07:00
|
|
|
typedef struct FrameAdvanceContext {
|
2024-06-25 15:13:31 -04:00
|
|
|
/* 0x0 */ s32 enabled;
|
|
|
|
|
/* 0x4 */ s32 timer;
|
|
|
|
|
} FrameAdvanceContext; // size = 0x8
|
|
|
|
|
|
2024-06-26 20:25:33 +02:00
|
|
|
|
|
|
|
|
#if ARE_FRAMERATE_OPTIONS_ENABLED
|
2024-06-25 15:13:31 -04:00
|
|
|
void FrameAdvance_Init(FrameAdvanceContext* frameAdvCtx);
|
|
|
|
|
s32 FrameAdvance_Update(FrameAdvanceContext* frameAdvCtx, struct Input* input);
|
2024-06-26 20:25:33 +02:00
|
|
|
#endif
|
2024-06-25 15:13:31 -04:00
|
|
|
|
|
|
|
|
int FrameAdvance_IsEnabled(struct PlayState* this);
|
|
|
|
|
|
|
|
|
|
#endif
|