Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions include/Kameda/Pause2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,8 @@ class Pause2D { // Autogenerated
static void *mPrintMessageTag;
static void *mStarTag;
static void *mStarDrawTag;

private:
u8 _0[0x174];
}; // class Pause2D
#endif // PAUSE2D_H
88 changes: 56 additions & 32 deletions include/Kameda/PauseManager.h
Original file line number Diff line number Diff line change
@@ -1,53 +1,77 @@
#ifndef PAUSEMANAGER_H
#define PAUSEMANAGER_H

#include "JSystem/J2D/J2DGrafContext.h"
#include "JSystem/JKernel/JKRArchive.h"
#include "JSystem/JKernel/JKRHeap.h"
#include "Kameda/Pause2D.h"
#include "Kameda/PrintMemoryCard.h"
#include "Kameda/Result2D.h"
#include "Osako/kartPad.h"
#include "types.h"

class PauseManager {
class PauseManager
{
public:
PauseManager(JKRHeap *); // 0x801343d0
void reset(); // 0x801345fc
void draw(); // 0x801346d0
void exec(); // 0x801348f8
static bool tstPause(); // 0x80135288
void wipeOut(int); // 0x80135290
static int getPauseChoice(); // 0x801352d0
void setTA(); // 0x8013541c

void setResultStartFlag(bool flag) {mResultStart = flag; }
PauseManager(JKRHeap *heap); // 0x801343d0
void reset(); // 0x801345fc
void draw(); // 0x801346d0
void exec(); // 0x801348f8
static bool tstPause(); // 0x80135288
void wipeOut(int); // 0x80135290
static int getPauseChoice(); // 0x801352d0
void setTA(); // 0x8013541c

void setResultStartFlag(bool flag) { mResultStart = flag; }
void setGameOverFlag(bool flag) { mGameOver = flag; }
void setExecFlag(bool flag) { mExec = flag; }
void setPauseEndFlag(bool flag) { mPauseEnd = flag; }

void enablePause() { _14 = 0; }

static PauseManager *getManager() {
return mThis;
}
static PauseManager *getManager() { return mThis; }

bool isResultStart() const { return mResultStart; }

private:
static PauseManager *mThis; // 0x80416298
static bool mIsPause; // 0x8041629c
static int mPauseSelector; // 0x804162a0
static int mPauseChoice; // 0x804162a4
static int mPauseNextChoice; // 0x804162a8
static KartGamePad *mPausePad; // 0x804162ac

u8 _0[0xe];
bool mResultStart;
bool _f;
bool mGameOver;
u8 _11[0x13 - 0x11];
bool mExec;
u32 _14;
bool mPauseEnd;
u8 _19[0x3c - 0x19];
static PauseManager *mThis; // 0x80416298
static bool mIsPause; // 0x8041629c
static int mPauseSelector; // 0x804162a0
static int mPauseChoice; // 0x804162a4
static int mPauseNextChoice; // 0x804162a8
static KartGamePad *mPausePad; // 0x804162ac

bool mNetFlag; // 0x00
u8 _1[3]; // 0x01
JKRArchive *mArchive; // 0x04
PrintMemoryCard *mPrintMemoryCard; // 0x08
u8 _c; // 0x0c
u8 _d; // 0x0d
bool mResultStart; // 0x0e
bool _f; // 0x0f
bool mGameOver; // 0x10
u8 _11; // 0x11
u8 _12; // 0x12
bool mExec; // 0x13
s32 _14; // 0x14
bool mPauseEnd; // 0x18
u8 _19; // 0x19
u8 _1a; // 0x1a
u8 _1b; // 0x1b
Pause2D *mPause2D; // 0x1c
Result2D *mResult2D; // 0x20
J2DOrthoGraph *mOrthoGraph; // 0x24
s32 _28; // 0x28
s32 _2c; // 0x2c
s32 _30; // 0x30
u32 _34; // 0x30
bool _38; // 0x38
u8 _39[3]; // 0x39
};

inline PauseManager *GETPauseManager() { return PauseManager::getManager(); }
inline PauseManager *GETPauseManager()
{
return PauseManager::getManager();
}

#endif
14 changes: 10 additions & 4 deletions include/Kameda/Result2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Result2D { // Autogenerated
void setDrawVS(); // 0x8014cb58
void setDrawTA(); // 0x8014cc10
void setDrawMG(); // 0x8014cd94
void getResultSelector(); // 0x8014ce48
static int getResultSelector(); // 0x8014ce48
void setRaceRank(); // 0x8014ce50
void setGPRank(); // 0x8014d924
void setVS(); // 0x8014df84
Expand All @@ -81,9 +81,12 @@ class Result2D { // Autogenerated
void getFrameColor(JUTColor &); // 0x80150500
void getScale(int); // 0x8015057c
void setScale(int); // 0x801505c4
void setGPClr(); // 0x80150804
void getAnmEnd(); // 0x80150830

static void setGPClr(); // 0x80150804
bool getAnmEnd(); // 0x80150830
static bool getDrawFlag();

static void setDrawFlag(bool drawFlag);

static const u64 mSetWordLineTag[9]; // 0x8036ec18
static const u64 mResultLayoutTag[11]; // 0x8036ec60
static const u64 mResultLineTag[20]; // 0x8036ecb8
Expand All @@ -101,6 +104,9 @@ class Result2D { // Autogenerated
// Inline/Unused
~Result2D();
void getCharPos(int);

public:
u8 _0[0x1c24];
}; // class Result2D

#endif // RESULT2D_H
2 changes: 2 additions & 0 deletions include/Kameda/SequenceInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ class SequenceInfo
JMARandFast mRnd; // 00
int mStartNo[8]; // 004
KartGamePad *mDecidePad; // 024
public:
u8 _28; // 028
int _2c; // 02C
private:
int _30; // 030
u8 mGhostFlags; // 034
u8 _35[0x3C - 0x35]; // 035
Expand Down
2 changes: 2 additions & 0 deletions include/Kameda/WipeManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ class WipeManager
void startWipe(int idx) { mMoveFlag[idx] = true; }
void stopWipe(int idx) { mMoveFlag[idx] = false; }
int getScreenCount() const { return mScrnCount; }
TWipeCurtain *getWipeCurtain() const { return mWipeCurtain; }
Mario *getMario() const { return mMario; }

static WipeManager *getManager() { return mThis; }

Expand Down
4 changes: 2 additions & 2 deletions include/Osako/PadRecorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ class PadRecorder
KartPadRecord *getGhostRecord(u8 no);
void playGhost();
// Inline
u32 getFrame() { return mFrame; };
s32 getFrame() { return mFrame; };
void setFrame(u32 frame) { mFrame = frame; }

static PadRecorder *mspRecorder;
private:
u32 mFrame;
s32 mFrame;
PadState mState;
KartPadData mPadData[NUM_PLAYERPADS];
JUTGamePad::CButton mButton[NUM_PLAYERPADS];
Expand Down
Loading
Loading