Skip to content

Commit

Permalink
Fix remain overrides to be consolidated to one function. (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhlexPlexico authored Jul 19, 2024
1 parent 4973f69 commit 3150cab
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
11 changes: 1 addition & 10 deletions code/mm.ld
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ SECTIONS{
*(.patch_OverrideItem00Init)
}

.patch_OverrideRemainSpawn 0x3DE1A0 : {
.patch_OverrideRemainSpawn 0x389E7C : {
*(.patch_OverrideRemainSpawn)
}

Expand Down Expand Up @@ -552,15 +552,6 @@ SECTIONS{
*(.patch_LoadExtData)
}

.patch_OverrideRemainSpawnTwo 0x4ABF10 : {
*(.patch_OverrideRemainSpawnTwo)
}

.patch_OverrideRemainSpawnThree 0x4ABF20 : {
*(.patch_OverrideRemainSpawnThree)
}


.patch_RemoveKafeiItemFromExtSlot 0x4AD1B8 : {
*(.patch_RemoveKafeiItemFromExtSlot)
}
Expand Down
1 change: 0 additions & 1 deletion code/source/asm/item_override_hooks.s
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ hook_CheckOshExtData:
hook_OverrideRemainSpawn:
push {r1-r12,lr}
bl ItemOverride_CheckBossStatus
cmp r0,#0x0
pop {r1-r12,lr}
bx lr

Expand Down
12 changes: 1 addition & 11 deletions code/source/asm/item_override_patches.s
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,7 @@ patch_OverrideQuiverArcheryTwo:
.section .patch_OverrideRemainSpawn
.global patch_OverrideRemainSpawn
patch_OverrideRemainSpawn:
bl hook_OverrideRemainSpawn

.section .patch_OverrideRemainSpawnTwo
.global patch_OverrideRemainSpawnTwo
patch_OverrideRemainSpawnTwo:
bl hook_OverrideRemainSpawn

.section .patch_OverrideRemainSpawnThree
.global patch_OverrideRemainSpawnThree
patch_OverrideRemainSpawnThree:
bl hook_OverrideRemainSpawn
b hook_OverrideRemainSpawn

.section .patch_OverrideWalletSpiderHouseTwo
.global patch_OverrideWalletSpiderHouseTwo
Expand Down

0 comments on commit 3150cab

Please sign in to comment.