Skip to content

Commit

Permalink
Merge branch 'svmng' of https://github.com/zsrtp/tpgz into svmng
Browse files Browse the repository at this point in the history
  • Loading branch information
Pheenoh committed Feb 4, 2024
2 parents 3ba8a4d + ed85194 commit 38ce748
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions modules/boot/include/practice.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

enum {
ANY_INDEX,
#ifdef GCN_PLATFORM
ANY_BITE_INDEX,
#endif
HUNDO_INDEX,
AD_INDEX,
NOSQ_INDEX,
Expand Down
5 changes: 4 additions & 1 deletion modules/boot/src/gorge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
#include "libtp_c/include/f_op/f_op_scene_req.h"
#include "libtp_c/include/utils.h"

#define WARP_CS_FRAMES 132
#ifdef WII_PLATFORM
#define TARGET_BUTTON Z
#define WARP_CS_FRAMES 160
#endif
#ifdef GCN_PLATFORM
#define TARGET_BUTTON L
#define WARP_CS_FRAMES 132
#endif

namespace GorgeVoidIndicator {
Expand All @@ -36,8 +37,10 @@ void warpToPosition() {
g_dComIfG_gameInfo.info.mMemory.mBit.mSwitch[0] = 0; // optimize later
dComIfGs_putSave(g_dComIfG_gameInfo.info.mDan.mStageNo);

#ifdef GCN_PLATFORM
// change form to wolf
dComIfGs_setTransformStatus(STATUS_WOLF);
#endif

// set loading info
g_dComIfG_gameInfo.play.mNextStage.wipe = 13;
Expand Down
4 changes: 4 additions & 0 deletions modules/menus/menu_practice/include/practice_menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
#include "practice.h"
#include "gz_flags.h"

#ifdef GCN_PLATFORM
#define PRACTICE_MENU_NUM 6
#elif defined WII_PLATFORM
#define PRACTICE_MENU_NUM 5
#endif

class PracticeMenu : public Menu {
public:
Expand Down
2 changes: 2 additions & 0 deletions modules/menus/menu_practice/src/practice_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ void PracticeMenu::draw() {
case ANY_INDEX:
g_menuMgr->push(MN_ANY_SAVES_INDEX);
return;
#ifdef GCN_PLATFORM
case ANY_BITE_INDEX:
g_menuMgr->push(MN_ANY_BITE_SAVES_INDEX);
return;
#endif
case HUNDO_INDEX:
g_menuMgr->push(MN_HUNDO_SAVES_INDEX);
return;
Expand Down

0 comments on commit 38ce748

Please sign in to comment.