Skip to content

Commit

Permalink
debug menu start
Browse files Browse the repository at this point in the history
  • Loading branch information
Niko committed Feb 16, 2025
1 parent 5ee1e2a commit 9b7663e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 21 deletions.
56 changes: 37 additions & 19 deletions decompile/General/AltMods/Mods9.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,7 @@ void DebugProfiler_Draw()
void DebugMenu_LoadGame_GivenLevelId(struct GameTracker* gGT, int levelID)
{
gGT->levelID = levelID;

#if 0
// RELOAD LEVEL
#endif
MainRaceTrack_RequestLoad(gGT->levelID);
}

void DebugMenu_LoadGame_GivenIndexE3(struct GameTracker* gGT, int index)
Expand All @@ -216,28 +213,49 @@ void DebugMenu_LoadGame_GivenIndexE3(struct GameTracker* gGT, int index)
Row 8: 4P Blizzard Bluff, Crash Cortex Tiny Coco
*/

#if 0
// RELOAD LEVEL
#endif

return;
MainRaceTrack_RequestLoad(gGT->levelID);
}

// Set by menu
static int debugPlayerIndex = 0;

void DebugMenu_LoadGame_GivenCharacterId(struct GameTracker* gGT, int charID)
{
data.characterIDs[0] = charID;
DECOMP_LOAD_Robots1P(charID)

#if 0
// RELOAD LEVEL
#endif
data.characterIDs[debugPlayerIndex] = charID;
MainRaceTrack_RequestLoad(gGT->levelID);
}

void DebugMenu_LoadGame_GivenNumPlyr(struct GameTracker* gGT, int numPlyr)
{
gGT->numPlyrNextGame = numPlyr;
MainRaceTrack_RequestLoad(gGT->levelID);
}

void DebugMenu_SetLapCount(struct GameTracker* gGT, int numLaps)
{
gGT->numLaps = numLaps;
}

static int debugModeArr[6] =
{
ADVENTURE_MODE,
ADVENTURE_MODE | ADVENTURE_ARENA,
TIME_TRIAL,
BATTLE_MODE,
ARCADE_MODE,
0x0, // VS mode
};

void DebugMenu_SetGameMode(struct GameTracker* gGT, int index)
{
int removeBits = ~(
ADVENTURE_MODE |
ADVENTURE_ARENA |
TIME_TRIAL |
BATTLE_MODE |
ARCADE_MODE
);

#if 0
// RELOAD LEVEL
#endif
}
gGT->gameMode1 &= removeBits;
gGT->gameMode1 |= debugModeArr[index];
};
4 changes: 2 additions & 2 deletions include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
//#define USE_HARDER // Difficulty Selector (Arcade)
//#define USE_NEWCUPS // Cup Randomizer
//#define USE_BOOSTBAR // Super's reserve bar
//#define USE_PROFILER // Debug profiler from PizzaHut
#define USE_PROFILER // Debug profiler from PizzaHut

//#define USE_RAMEX // 8mb RAM expansion
//#define USE_BIGQUEUE // Requires RAMEX: Extended loading queue
//#define USE_HIGH1P // Requires BIGQUEUE: All high model drivers
//#define USE_RANDOM // Requires HIGH1P: Character Randomizer
//#define USE_ONLINE // Requires HIGH1P: Online Multiplayer
//#define USE_HIGHMP // Requires RAMEX: Multiplayer Maxed mod
//#define USE_DEFRAG // Enables defragged decomp sections (required for ModsMain.c/ModsX.c)
#define USE_DEFRAG // Enables defragged decomp sections (required for ModsMain.c/ModsX.c)
//#define USE_NEWLEV // Requires RAMEX: Enables custom levels

//#define USE_VR // Virtual Reality
Expand Down

0 comments on commit 9b7663e

Please sign in to comment.