d_dvd_drive_error OK

This commit is contained in:
robojumper
2025-05-13 19:11:43 +02:00
parent 912cc30b60
commit 46117f72a6
26 changed files with 385 additions and 146 deletions
+1
View File
@@ -4,6 +4,7 @@
namespace d2d {
void defaultSet();
void draw();
} // namespace d2d
+26
View File
@@ -0,0 +1,26 @@
#ifndef D_DVD_DRIVE_ERROR_H
#define D_DVD_DRIVE_ERROR_H
#include "common.h"
#include "egg/core/eggHeap.h"
class dDvdDriveError_c {
public:
static void create(EGG::Heap *heap);
void draw();
void execute();
void init();
bool isError() const;
static dDvdDriveError_c *GetInstance() {
return sInstance;
}
private:
static dDvdDriveError_c *sInstance;
/* 0x00 */ s32 mDvdDriveStatus;
/* 0x04 */ bool mIsError;
};
#endif
+9 -16
View File
@@ -10,32 +10,21 @@
namespace dDvdUnk {
class unkstruct_c {
public:
static unkstruct_c *create(EGG::Heap *heap);
void draw();
void execute();
void init();
char getUnk();
static void createFont(EGG::Heap *heap);
private:
UNKWORD field_0x0;
char field_0x4;
};
class FontUnk {
public:
FontUnk() {}
FontUnk() : field_0x2D(0) {}
static FontUnk *GetInstance() {
return sInstance;
}
static void create(EGG::Heap *heap);
void init();
void fn_80052D00(bool);
void fn_80052D50();
void fn_80052C90();
void fn_80052C60();
s32 getField_0x24() const {
return field_0x24;
@@ -53,6 +42,10 @@ public:
field_0x2C = val;
}
const nw4r::ut::ResFont &getFont() const {
return mFont;
}
private:
static FontUnk *sInstance;
+4 -4
View File
@@ -6,10 +6,10 @@
// Made up name
class dGfx_c {
public:
typedef void (*PreDrawCallback)(void);
typedef void (*DrawCallback)(void);
void setDrawCallback(PreDrawCallback cb) {
mPreDrawCb = cb;
void setDrawCallback(DrawCallback cb) {
mDrawCallback = cb;
}
void setField0x09(u8 val) {
@@ -24,7 +24,7 @@ private:
static dGfx_c *sInstance;
/* 0x00 */ u8 _0x00[0x04 - 0x00];
/* 0x04 */ PreDrawCallback mPreDrawCb;
/* 0x04 */ DrawCallback mDrawCallback;
/* 0x08 */ u8 field_0x08;
/* 0x09 */ u8 field_0x09;
};
+5 -3
View File
@@ -38,8 +38,8 @@ private:
private:
/* 0x000 */ SizedString<64> mArcName;
/* 0x040 */ SizedString<64> mStr2;
/* 0x080 */ SizedString<64> mStr3;
/* 0x040 */ SizedString<64> mLytFileName;
/* 0x080 */ SizedString<64> mAnimFileName;
/* 0x0C0 */ d2d::ResAccIf_c mResAcc;
/* 0x430 */ m2d::Simple_c mLyt;
/* 0x4C8 */ m2d::Anm_c mAnm;
@@ -58,6 +58,8 @@ private:
bool checkDone();
static void drawCallback();
sFPhaseBase::sFPhaseState cb1();
sFPhaseBase::sFPhaseState cb2();
sFPhaseBase::sFPhaseState cb3();
@@ -77,7 +79,7 @@ private:
/* 0x570 */ mDvd_callback_c *mpDvdCallback;
/* 0x574 */ STATE_MGR_DECLARE(dScBoot_c);
/* 0x5B4 */ dFader_c mFader;
/* 0x5D4 */ s32 field_0x5D4;
/* 0x5D4 */ s32 mProgressStage;
/* 0x5D8 */ u32 field_0x5D8;
/* 0x5DC */ u8 field_0x5DC;
/* 0x5DD */ u8 field_0x5DD;
+2
View File
@@ -11,6 +11,8 @@ public:
return sInstance;
}
static bool create();
bool setProperties(const char *label, bool, const wchar_t *);
void showMaybe();
void showMaybe(s32 arg);
+1
View File
@@ -21,6 +21,7 @@ namespace d3d {
f32 fn_80016960(mVec3_c&, const mVec3_c& pos);
bool fn_80016A90(const mVec3_c& pos);
void fn_80016B60(mVec3_c&, const mVec3_c& pos);
void createLightTextures();
class AnmMdlWrapper : protected m3d::mdlAnmChr {
public:
+21
View File
@@ -0,0 +1,21 @@
#ifndef D_HBM_H
#define D_HBM_H
#include "common.h"
class dHbm_c {
public:
static dHbm_c *GetInstance();
s32 fn_801967D0();
s32 fn_80197560(s32);
void offFlags(u32 flags) {
mFlags &= ~flags;
}
private:
u8 _0x00[0x218 - 0x000];
u32 mFlags;
};
#endif
-8
View File
@@ -1,8 +0,0 @@
#ifndef HBM_H
#define HBM_H
extern "C" void *getHBM();
extern "C" int fn_801967D0(void *hbm);
extern "C" int fn_80197560(void *hbm, int);
#endif
+20 -5
View File
@@ -3,6 +3,16 @@
#include "common.h"
extern "C" f32 lbl_80575144;
inline f32 get_80575144() {
return lbl_80575144;
}
extern "C" f32 lbl_80575148;
inline f32 get_80575148() {
return lbl_80575148;
}
extern "C" f32 lbl_805751A4;
inline f32 get_805751A4() {
return lbl_805751A4;
@@ -13,11 +23,21 @@ inline s32 get_80575134() {
return lbl_80575134;
}
extern "C" s32 lbl_80575118;
inline s32 get_80575118() {
return lbl_80575118;
}
extern "C" s32 lbl_8057511C;
inline s32 get_8057511C() {
return lbl_8057511C;
}
extern "C" f32 lbl_8057514C;
inline f32 get_8057514C() {
return lbl_8057514C;
}
extern "C" f32 lbl_80575150;
inline f32 get_80575150() {
return lbl_80575150;
@@ -28,11 +48,6 @@ inline f32 get_8057515C() {
return lbl_8057515C;
}
extern "C" f32 lbl_80575148;
inline f32 get_80575148() {
return lbl_80575148;
}
extern "C" f32 lbl_8057519C;
inline f32 get_8057519C() {
return lbl_8057519C;
+9 -7
View File
@@ -1,15 +1,17 @@
#ifndef NAND_RESULT_TRACKER_H
#define NAND_RESULT_TRACKER_H
#include "egg/core/eggHeap.h"
#include "rvl/NAND.h"
class NandResultTracker {
public:
static NandResultTracker *GetInstance();
bool isFailure(NANDResult status);
private:
NandResultTracker *sInstance;
};
public:
static void create(EGG::Heap *heap);
static NandResultTracker *GetInstance();
bool isFailure(NANDResult status);
private:
NandResultTracker *sInstance;
};
#endif
+5
View File
@@ -12,6 +12,11 @@ public:
void fn_80067FE0();
bool fn_80068E80();
bool fn_80067F60();
void fn_80067DD0(bool);
bool is1Or5() const {
return field_0x0C == 1 || field_0x0C == 5;
}
u8 field_0x00[0x0C - 0x00];
s32 field_0x0C;
+1
View File
@@ -117,6 +117,7 @@ public:
};
class SaveMgr {
public:
static void create(EGG::Heap *heap);
static SaveMgr *GetInstance() {
+19
View File
@@ -0,0 +1,19 @@
#ifndef SAVE_RELATED_H
#define SAVE_RELATED_H
class SaveRelated {
public:
static void create();
static void remove();
static SaveRelated *GetInstance() {
return sInstance;
}
void fn_80015F40();
private:
static SaveRelated *sInstance;
};
#endif