Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions include/rb3enhanced.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ extern int RB3E_LoadedSongCount;

// Emulator detection
int RB3E_IsEmulator();

// StageKit set state, needed for fixing LED bug.
#ifdef RB3E_XBOX
void StagekitSetStateHook(int state1, int state2);
#endif
7 changes: 7 additions & 0 deletions source/GameHooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,12 @@ void *GameDestructHook(void *theGame, int r4)
{
char in_game = 0x00;
RB3E_SendEvent(RB3E_EVENT_STATE, &in_game, sizeof(in_game));

#ifdef RB3E_XBOX
// When not in-game, turn off the stage-kit lights.
// Fixes the RB3 bug(?) that leaves 2 red leds on when exiting the score view screen.
StagekitSetStateHook(0x00, 0xFF);
#endif

return GameDestruct(theGame, r4);
}