mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
Add gPlayState
This commit is contained in:
@@ -1758,5 +1758,9 @@ extern GfxMasterList D_0E000000;
|
||||
extern Mtx D_01000000;
|
||||
extern u16 D_0F000000[];
|
||||
|
||||
// #region 2S2H [General]
|
||||
extern PlayState* gPlayState;
|
||||
// #endregion
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -38,6 +38,10 @@ u8 sMotionBlurStatus;
|
||||
s32 gDbgCamEnabled = false;
|
||||
u8 D_801D0D54 = false;
|
||||
|
||||
// #region 2S2H [General] Making gPlayState available
|
||||
PlayState* gPlayState;
|
||||
// #endregion
|
||||
|
||||
typedef enum {
|
||||
/* 0 */ MOTION_BLUR_OFF,
|
||||
/* 1 */ MOTION_BLUR_SETUP,
|
||||
@@ -429,6 +433,9 @@ void Play_Destroy(GameState* thisx) {
|
||||
KaleidoScopeCall_Destroy(this);
|
||||
KaleidoManager_Destroy();
|
||||
ZeldaArena_Cleanup();
|
||||
// #region 2S2H [General] Making gPlayState available
|
||||
gPlayState = NULL;
|
||||
// #endregion
|
||||
}
|
||||
|
||||
#define PLAY_COMPRESS_BITS 5
|
||||
@@ -2090,6 +2097,9 @@ void Play_FillScreen(GameState* thisx, s16 fillScreenOn, u8 red, u8 green, u8 bl
|
||||
|
||||
void Play_Init(GameState* thisx) {
|
||||
PlayState* this = (PlayState*)thisx;
|
||||
// #region 2S2H [General] Making gPlayState available
|
||||
gPlayState = this;
|
||||
// #endregion
|
||||
GraphicsContext* gfxCtx = this->state.gfxCtx;
|
||||
s32 pad;
|
||||
uintptr_t zAlloc;
|
||||
|
||||
Reference in New Issue
Block a user