mirror of
https://github.com/zeldaret/tp
synced 2026-06-18 15:36:07 -04:00
match debug for D_menu_fmap2_d (#2925)
* menu_fmap2d debug progress * match debug for d_menu_fmap2D * fix broken function * fix weird shield mismatch * fix other shield mismatch * fix suggestions * fix func for wii version * match func for all versions * remove cast from saveBitLabels
This commit is contained in:
@@ -223,7 +223,7 @@ public:
|
||||
break;
|
||||
}
|
||||
/* dSv_event_flag_c::F_0281 - Shop - Malo Mart opens in Castle Town */
|
||||
if (dComIfGs_isEventBit((u16)dSv_event_flag_c::saveBitLabels[281]) && uVar3 == 9) {
|
||||
if (dComIfGs_isEventBit(dSv_event_flag_c::saveBitLabels[281]) && uVar3 == 9) {
|
||||
uVar3 = 0xb;
|
||||
}
|
||||
} else {
|
||||
@@ -257,7 +257,7 @@ public:
|
||||
break;
|
||||
}
|
||||
/* dSv_event_flag_c::F_0281 - Shop - Malo Mart opens in Castle Town */
|
||||
if (dComIfGs_isEventBit((u16)dSv_event_flag_c::saveBitLabels[281]) && uVar3 == 10) {
|
||||
if (dComIfGs_isEventBit(dSv_event_flag_c::saveBitLabels[281]) && uVar3 == 10) {
|
||||
uVar3 = 12;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,9 @@ class dMsgScrnExplain_c;
|
||||
class dMenu_Fmap2DBack_c : public dDlst_base_c, public dMenuMapCommon_c {
|
||||
public:
|
||||
dMenu_Fmap2DBack_c();
|
||||
|
||||
void setRegionTexData(u8, ResTIMG*, f32, f32, f32, f32, f32, f32, f32, f32, f32);
|
||||
void setRegionTexData(u8, f32, f32, f32, f32, f32, f32, f32, f32, f32);
|
||||
void calcAllMapPos();
|
||||
f32 calcAllMapScaleRate();
|
||||
void calcAllMapPos2DFirst(f32, f32, f32*, f32*);
|
||||
@@ -142,8 +144,8 @@ public:
|
||||
u8 getSpotCursor() { return mSpotCursor; }
|
||||
u8 getSelectRegion() { return mSelectRegion; }
|
||||
bool getAllPathShowFlag() { return mAllPathShowFlag; }
|
||||
f32 getRegionOriginX(u8 i_region) { return mRegionOriginX[i_region]; }
|
||||
f32 getRegionOriginZ(u8 i_region) { return mRegionOriginZ[i_region]; }
|
||||
f32 getRegionOriginX(int i_region) { return mRegionOriginX[i_region]; }
|
||||
f32 getRegionOriginZ(int i_region) { return mRegionOriginZ[i_region]; }
|
||||
|
||||
void setArrowAlpha(f32 i_alpha) { mArrowAlpha = i_alpha; }
|
||||
void setSpotTextureFadeAlpha(f32 i_alpha) { mSpotTextureFadeAlpha = i_alpha; }
|
||||
@@ -155,8 +157,8 @@ public:
|
||||
void onArrowDrawFlag() { mArrowDrawFlag = true; }
|
||||
bool isArrowDrawFlag() { return mArrowDrawFlag; }
|
||||
|
||||
void onShowRegionFlag(int region_bit) { mRegionFlag |= ((1 << region_bit) & 0xFF); }
|
||||
bool isShowRegionFlag(int region_bit) { return mRegionFlag & ((1 << region_bit) & 0xFF); }
|
||||
void onShowRegionFlag(int region_bit) { mRegionFlag |= (u8)(1 << region_bit); }
|
||||
BOOL isShowRegionFlag(int region_bit) { return mRegionFlag & (u8)(1 << region_bit) ? TRUE : FALSE; }
|
||||
|
||||
void mapBlink() {}
|
||||
|
||||
|
||||
@@ -302,7 +302,7 @@ void dMeter2Info_set2DVibrationM();
|
||||
void dMeter2Info_offUseButton(int pButton);
|
||||
bool dMeter2Info_is2DActiveTouchArea();
|
||||
u8 dMeter2Info_getRecieveLetterNum();
|
||||
bool dMeter2Info_getPixel(f32 i_posX, f32 i_posY, f32 param_2, f32 param_3, f32 i_sizeX,
|
||||
u8 dMeter2Info_getPixel(f32 i_posX, f32 i_posY, f32 param_2, f32 param_3, f32 i_sizeX,
|
||||
f32 i_sizeY, struct ResTIMG const* i_resTimg);
|
||||
const char* dMeter2Info_getPlusTextureName();
|
||||
const char* dMeter2Info_getNumberTextureName(int i_num);
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
JGeometry::TBox2<f32>* getBounds(J2DPane*);
|
||||
|
||||
Vec getGlobalVtx(Mtx* param_0, u8 param_1, bool param_2, s16 param_3) {
|
||||
return getGlobalVtx(getPanePtr(), param_0, param_1, param_2, param_3);
|
||||
return getGlobalVtx(mPane, param_0, param_1, param_2, param_3);
|
||||
}
|
||||
|
||||
Vec getGlobalVtxCenter(bool param_0, s16 param_1) {
|
||||
@@ -60,8 +60,8 @@ public:
|
||||
f32 getPosX() { return getPanePtr()->getBounds().i.x; }
|
||||
f32 getPosY() { return getPanePtr()->getBounds().i.y; }
|
||||
|
||||
f32 getSizeX() { return getPanePtr()->getWidth(); }
|
||||
f32 getSizeY() { return getPanePtr()->getHeight(); }
|
||||
f32 getSizeX() { return mPane->getWidth(); }
|
||||
f32 getSizeY() { return mPane->getHeight(); }
|
||||
|
||||
f32 getRotateZ() { return getPanePtr()->getRotateZ(); }
|
||||
|
||||
|
||||
+6
-1
@@ -1027,7 +1027,12 @@ public:
|
||||
#if VERSION > VERSION_GCN_JPN
|
||||
const
|
||||
#endif
|
||||
static u16 saveBitLabels[822];
|
||||
#if PLATFORM_SHIELD
|
||||
s16
|
||||
#else
|
||||
u16
|
||||
#endif
|
||||
static saveBitLabels[822];
|
||||
};
|
||||
|
||||
class dSv_event_tmp_flag_c {
|
||||
|
||||
Reference in New Issue
Block a user