Skip to content

Commit 5b3f475

Browse files
committed
Update patch_arm9.c
1 parent f2f4d12 commit 5b3f475

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

retail/bootloaderi/source/arm7/patch_arm9.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,6 +1888,7 @@ void patchBannerPath(const tNDSHeader* ndsHeader) {
18881888
extern u32 iUncompressedSize;
18891889
extern u32 iUncompressedSizei;
18901890
u32* arm9idst = (u32*)*(u32*)0x02FFE1C8;
1891+
u32* arm9dst = (u32*)ndsHeader->arm9destination;
18911892
for (u32 i = 0; i < iUncompressedSizei/4; i++) {
18921893
if (arm9idst[i] == (u32)offset) {
18931894
arm9idst[i] = newPathOffset;
@@ -1930,7 +1931,6 @@ void patchBannerPath(const tNDSHeader* ndsHeader) {
19301931
dbg_printf("\n\n");
19311932

19321933
found = false;
1933-
arm9idst = (u32*)*(u32*)0x02FFE1C8;
19341934
for (u32 i = 0; i < iUncompressedSizei/4; i++) {
19351935
if (arm9idst[i] == (u32)offset) {
19361936
arm9idst[i] = newPathOffset;
@@ -1939,7 +1939,6 @@ void patchBannerPath(const tNDSHeader* ndsHeader) {
19391939
}
19401940

19411941
if (!found) {
1942-
u32* arm9dst = (u32*)ndsHeader->arm9destination;
19431942
for (u32 i = 0; i < iUncompressedSize/4; i++) {
19441943
if (arm9dst[i] == (u32)offset) {
19451944
arm9dst[i] = newPathOffset;

0 commit comments

Comments
 (0)