From b9f9eeb73d6e3f4ebbd5d45c5997f73478425779 Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 31 Jan 2013 04:17:37 +0100 Subject: add replays as an on/off thing --- src/koopatlas/starcoin.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/koopatlas') diff --git a/src/koopatlas/starcoin.cpp b/src/koopatlas/starcoin.cpp index a0def97..a7a019a 100644 --- a/src/koopatlas/starcoin.cpp +++ b/src/koopatlas/starcoin.cpp @@ -373,6 +373,7 @@ static const int secretCode[] = { static const int secretCodeButtons = WPAD_UP|WPAD_DOWN|WPAD_LEFT|WPAD_RIGHT|WPAD_ONE|WPAD_TWO; static int secretCodeIndex = 0; extern bool enableDebugMode; +extern u8 isReplayEnabled; void dWMStarCoin_c::beginState_ShowWait() { visible = true; @@ -413,8 +414,15 @@ void dWMStarCoin_c::executeState_Wait() { if (secretCode[secretCodeIndex] == 0) { secretCodeIndex = 0; MapSoundPlayer(SoundRelatedClass, SE_VOC_MA_THANK_YOU, 1); - enableDebugMode = !enableDebugMode; - OSReport("Debug mode toggled!\n"); + //enableDebugMode = !enableDebugMode; + //OSReport("Debug mode toggled!\n"); + if (isReplayEnabled != 100) { + isReplayEnabled = 100; + OSReport("Replay Recording enabled!\n"); + } else { + isReplayEnabled = 0; + OSReport("Replay Recording disabled!\n"); + } } return; } else { -- cgit v1.2.3