Skip to content

Commit a0482fb

Browse files
authored
Merge pull request #3048 from 2dos/fixes-jan-18
N64LOL
2 parents 3eff59f + 8f11496 commit a0482fb

File tree

3 files changed

+507
-507
lines changed

3 files changed

+507
-507
lines changed

base-hack/src/initialization/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
#include "../../include/common.h"
1414

15-
ROM_DATA static char music_storage[MUSIC_SIZE];
15+
ROM_DATA static char music_storage[MUSIC_SIZE + 0xF];
1616

1717
ROM_RODATA_NUM const char music_types[SONG_COUNT] = {
1818
-1,
@@ -239,7 +239,7 @@ void initHack(int source) {
239239
*/
240240
if (LoadedHooks == 0) {
241241
if ((source == 1) || (CurrentMap == MAP_NINTENDOLOGO)) {
242-
*(int*)(0x8076BF38) = (int)&music_storage[0]; // Increase music storage
242+
*(int*)(0x8076BF38) = ((int)(&music_storage[0]) + 0xF) & 0xFFFFFFF0; // Increase music storage. Ensure it's 0x10 aligned
243243
grab_lock_timer = -1;
244244
bonusAutocomplete = Rando.resolve_bonus;
245245
TextHoldOn = Rando.quality_of_life.textbox_hold;

static/patches/shrink-dk64.bps

-22 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)