diff options
author | Treeki <treeki@gmail.com> | 2013-05-04 06:06:24 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-05-04 06:06:24 +0200 |
commit | 205d20bce4f874cfbebae1ccf26f4b58d7fbf4e1 (patch) | |
tree | 5475f3c461004c2e9d95c6b75b288eed274cd10b | |
parent | 95da70dfef8c390979ba0bff5e9ed1132397b28b (diff) | |
download | kamek-205d20bce4f874cfbebae1ccf26f4b58d7fbf4e1.tar.gz kamek-205d20bce4f874cfbebae1ccf26f4b58d7fbf4e1.zip |
disable high score in credits
Diffstat (limited to '')
-rw-r--r-- | creditsMgr.yaml | 3 | ||||
-rw-r--r-- | src/creditsMgr.cpp | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/creditsMgr.yaml b/creditsMgr.yaml index a92cd45..910bcb8 100644 --- a/creditsMgr.yaml +++ b/creditsMgr.yaml @@ -18,6 +18,9 @@ hooks: src_addr_pal: 0x800B3540 target_func: 'StaffCreditsNoScore' + - {name: CreditsUseHighScore0, type: patch, addr_pal: 0x800CE230, data: '38600000'} + - {name: CreditsDontSaveHighScore, type: nop_insn, area_pal: 0x807AE888} + - {name: DisableCreditsCrap1, type: patch, addr_pal: 0x80049608, data: '38000000'} # - {name: DisableCreditsCrap2, type: patch, addr_pal: 0x80053144, data: '38000000'} # Related to entrances diff --git a/src/creditsMgr.cpp b/src/creditsMgr.cpp index 85f9a9a..7b419b7 100644 --- a/src/creditsMgr.cpp +++ b/src/creditsMgr.cpp @@ -285,6 +285,7 @@ int dCreditsMgr_c::onExecute() { int u16_top, u16_bottom; int whatAnim; u8 *staffCreditScore; + nw4r::lyt::Pane *paneThing; const u8 *read = scriptPos; int cmdSize = *(read++); @@ -317,6 +318,9 @@ int dCreditsMgr_c::onExecute() { case 4: // Show scores staffCreditScore = GetStaffCreditScore(); staffCreditScore[0x279] = 1; + // Hide the high score bit + paneThing = *((nw4r::lyt::Pane**)(staffCreditScore + 0x274)); + paneThing->SetVisible(false); OSReport("Staff Credit Score object is at %p, going to show it\n", staffCreditScore); break; |