summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--creditsMgr.yaml3
-rw-r--r--src/creditsMgr.cpp4
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;