summaryrefslogtreecommitdiff
path: root/src/koopatlas/starcoin.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-01-31 04:17:37 +0100
committerTreeki <treeki@gmail.com>2013-01-31 04:17:37 +0100
commitb9f9eeb73d6e3f4ebbd5d45c5997f73478425779 (patch)
tree4f25550df84b7cb77601c699d7ce4d4858a2f9f9 /src/koopatlas/starcoin.cpp
parent26f0eac040ac5cdbd2dd57ef8fb56c54066f40d1 (diff)
downloadkamek-b9f9eeb73d6e3f4ebbd5d45c5997f73478425779.tar.gz
kamek-b9f9eeb73d6e3f4ebbd5d45c5997f73478425779.zip
add replays as an on/off thing
Diffstat (limited to 'src/koopatlas/starcoin.cpp')
-rw-r--r--src/koopatlas/starcoin.cpp12
1 files changed, 10 insertions, 2 deletions
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 {