diff --git a/src/m2-hack.asm b/src/m2-hack.asm index b63f622..bee9805 100644 --- a/src/m2-hack.asm +++ b/src/m2-hack.asm @@ -1962,6 +1962,9 @@ nop // Initializer hacks + // Make it so the first entry of the first palette isn't cleared + .org 0x80112BE :: bl _112be_remove_pal_blanking_quick_title + // Point to custom initializer routine .org 0x82D6BE8 :: dw title_initializer + 1 diff --git a/src/m2-title.asm b/src/m2-title.asm index 55fb12f..b1f06a3 100644 --- a/src/m2-title.asm +++ b/src/m2-title.asm @@ -21,6 +21,21 @@ pop {r1} ldr r0,=0x80113F4 mov pc,r0 // Run the existing routine +//--------------------------------------------------------- +_112be_remove_pal_blanking_quick_title: + +// Normally the game clears the first entry of the first palette +// when showing animations. We don't want that for the quick version +// of the title. + +cmp r5,#5 // Is it the quick version of the title? +beq @@rmv_pal_qt_end +mov r1,r8 // If not, blank out the first entry +strh r0,[r1,#0] + +@@rmv_pal_qt_end: +bx lr + //--------------------------------------------------------- title_setup_clamp: mov r1,250