Skip to content

Commit 8d9383b

Browse files
authored
Merge pull request #279 from robojumper/d_lyt_mini_game
d_lyt_mini_game
2 parents e2ee9fc + d428d4e commit 8d9383b

22 files changed

+5315
-391
lines changed

config/SOUE01/splits.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1618,9 +1618,11 @@ d/lyt/d_lyt_enemy_icon.cpp:
16181618

16191619
d/lyt/d_lyt_mini_game.cpp:
16201620
.text start:0x8028BCE0 end:0x802969E0 align:16
1621-
.rodata start:0x804EE790 end:0x804EEB68
1621+
.rodata start:0x804EE7D8 end:0x804EEB68
16221622
.data start:0x80538E58 end:0x80539B68
1623+
.sdata start:0x80573B88 end:0x80573BB0
16231624
.sbss start:0x80575970 end:0x80575990
1625+
.sdata2 start:0x8057C700 end:0x8057C760
16241626

16251627
d/lyt/d_lyt_meter_suiryu_score.cpp:
16261628
.text start:0x802969E0 end:0x8029C2C8 align:16

config/SOUE01/symbols.txt

Lines changed: 282 additions & 282 deletions
Large diffs are not rendered by default.

include/d/a/d_a_item.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class dAcItem_c : public dAcItemBase_c {
5353
return checkFlag(flag);
5454
}
5555
static void setFlag(s32 id);
56+
static bool checkTreasureTempCollect(u16 itemId);
5657

5758
void setItemPosition(const mVec3_c &);
5859
void getItemFromBWheelItem();

include/d/d_message.h

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,20 @@ class dFlow_c : dFlowBase_c {
202202
};
203203

204204
class dMessage_c : public dBase_c {
205+
public:
206+
enum Minigame_e {
207+
MG_THRILL_DIGGER = 0,
208+
MG_BAMBOO_CUTTING,
209+
MG_INSECT_CAPTURE,
210+
MG_ROLLERCOASTER,
211+
MG_PUMPKIN_ARCHERY,
212+
MG_FUN_FUN_ISLAND,
213+
MG_TRIAL_TIME_ATTACK,
214+
MG_BOSS_RUSH,
215+
216+
MG_NONE,
217+
};
218+
205219
public:
206220
dMessage_c();
207221
virtual ~dMessage_c() {
@@ -276,23 +290,23 @@ class dMessage_c : public dBase_c {
276290
}
277291

278292
void setMiniGameVariant(s32 v) {
279-
mMiniGameVariant = v;
293+
mMinigameVariant = v;
280294
}
281295

282296
s32 getMiniGameVariant() const {
283-
return mMiniGameVariant;
297+
return mMinigameVariant;
284298
}
285299

286300
void setField_0x344(s32 v) {
287301
field_0x344 = v;
288302
}
289303

290-
u8 getField_0x340() const {
291-
return field_0x340;
304+
bool hasSetMinigameResult() const {
305+
return mHasSetMinigameResult;
292306
}
293307

294-
void setField_0x340(u8 v) {
295-
field_0x340 = v;
308+
void setHasSetMinigameResult(bool v) {
309+
mHasSetMinigameResult = v;
296310
}
297311

298312
static bool isValidTextLabel(const char *name);
@@ -376,8 +390,8 @@ class dMessage_c : public dBase_c {
376390

377391
/* 0x334 */ u32 mMinigameResultPoints;
378392
/* 0x338 */ u32 mMinigameTime;
379-
/* 0x33C */ s32 mMiniGameVariant;
380-
/* 0x340 */ u8 field_0x340;
393+
/* 0x33C */ s32 mMinigameVariant;
394+
/* 0x340 */ bool mHasSetMinigameResult;
381395
/* 0x344 */ s32 field_0x344;
382396
};
383397

include/d/d_sc_game.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "f/f_profile_name.h"
1212
#include "m/m2d.h"
1313
#include "m/m_angle.h"
14+
#include "m/m_fader_base.h"
1415
#include "m/m_vec.h"
1516
#include "s/s_FPhase.h"
1617
#include "s/s_State.hpp"
@@ -210,6 +211,14 @@ class dScGame_c : public dScene_c {
210211
return mFader.isSettled();
211212
}
212213

214+
bool isFadingOut() const {
215+
return mFader.isStatus(mFaderBase_c::FADING_OUT);
216+
}
217+
218+
bool isFadingIn() const {
219+
return mFader.isStatus(mFaderBase_c::FADING_IN);
220+
}
221+
213222
f32 targetingScreenFn_801BBEC0() const {
214223
return mScreen1.fn_801BBEC0();
215224
}

include/d/d_stage_mgr.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "egg/gfx/eggScreen.h"
1212
#include "m/m_allocator.h"
1313
#include "m/m_dvd.h"
14+
#include "m/m_fader_base.h"
1415
#include "nw4r/g3d/g3d_camera.h"
1516
#include "s/s_FPhase.h"
1617
#include "s/s_State.hpp"
@@ -176,6 +177,10 @@ class dStageMgr_c : public dBase_c {
176177
return mFader.isSettled();
177178
}
178179

180+
bool isFadingOut() const {
181+
return mFader.isStatus(mFaderBase_c::FADING_OUT);
182+
}
183+
179184
bool isInLastBoss() const {
180185
return mIsInLastBoss;
181186
}

include/d/lyt/d2d.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "m/m2d.h"
66
#include "nw4r/lyt/lyt_pane.h"
77
#include "nw4r/lyt/lyt_picture.h"
8+
#include "nw4r/lyt/lyt_types.h"
89

910
class dTextBox_c;
1011
class dWindow_c;
@@ -260,6 +261,11 @@ struct AnmGroupBase_c {
260261
return (mFlags & ANMGROUP_FLAG_ENABLE) != 0;
261262
}
262263

264+
// Not sure
265+
inline u8 isEnabled_() const {
266+
return (mFlags & ANMGROUP_FLAG_ENABLE);
267+
}
268+
263269
inline bool isStop() const {
264270
return mpFrameCtrl->isStop();
265271
}

0 commit comments

Comments
 (0)