Language…
5 users online: Danik2343, Firstnamebutt, pnaha, Wowsie, Zavok - Guests: 103 - Bots: 292
Users: 64,795 (2,381 active)
Latest user: mathew

Pause Menu and Addmusic K conflict

I'm trying to use that Pause Menu patch (which I modded Graphics and menu tilemap). Applying it in a clean ROM is okay, it works fine. Buut, when I use AddMusicK in that hack, as you can see, menu graphics aren't uploaded anymore to VRAM and even worse, you can't unpause game. Instead, you can pause game multiple times and you are only able to exit level if "Pause+Select exit" is enabled on that one level.


Before using AddmusicK

After using AddmusicK. As you can see, garbled graphics are shown instead of the menu graphics.

I think the problem about unpausing game have something to do with this piece of code:

Code
;=============;
; Update OAM  ;
;=============;
UpdateOAM:
        LDA $13D4               ;\
        BEQ +                   ; | If $13D4 == 0, branch.
        LDA $10                 ; |
        BEQ $FC                 ; | Chocolate Island 2 Infinite Loop.
        JSR Clear2ndOAM         ; |
        PHB                     ; |
        PHK                     ; | Make this our data bank.
        PLB                     ; |
        LDA $7006FF             ; | Use $7006FF ..
        ASL A                   ; | *2
        TAX                     ; | -> X.
        JSR (MenuPtr,x)         ; | As a pointer.
        PLB                     ; | Restore data bank.
        JSR DrawMenu            ; | Draw menu tilemap.
        RTL                     ;/ Terminate.
+       LDA $10                 ;\
        BEQ $FC                 ;/ Chocolate Island 2 Infinite Loop.
        PHB                     ;\
        PHK                     ; | Make this our program bank.
        PLB                     ; |
        PLB                     ; | Useless code.
        RTL                     ;/


And about not updating OAM with this:

Code
;=============;
; Change OAM  ;
;=============;
ChangeOAM:
        LDY $13D4               ;\
        BEQ +                   ; | If $13D4 == 0, branch.
        LDY #$70                ; |
        STY $4304               ; |
        LDA #$0700              ; |
        STA $4302               ; |
+       LDY #$01                ; | Restore hacked code.
        STY $420B               ; |
        RTL                     ;/


Unfortunately, I don't know how to deal with this problem, so again, I'm needing some help solving this problem! #tb{^V^}

Thanks in advance!

EDIT:In case someone would like to look inside game, here it is two patches showing what happens in each case.

EDIT2: Lol, I forgot to put the link of pastebin xD.