Skip to content

Commit 120a832

Browse files
piratesephirothRocketRobz
authored andcommitted
Fix Castlevania Portrait of Ruin (#210)
1 parent 0d80f4c commit 120a832

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

bootloader/source/main.arm7.c

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,39 @@ void loadBinary_ARM7 (aFile file)
517517
//fixes not enough memory error
518518
*(u32*)(0x0204cdbc) = 0xe1a00000; //nop
519519
}
520+
521+
// 0735 - Castlevania - Portrait of Ruin (USA)
522+
if(ROM_TID == 0x45424341){
523+
*(u32*)(0x02007910) = 0xeb02508e;
524+
*(u32*)(0x02007918) = 0xea000004;
525+
*(u32*)(0x02007a00) = 0xeb025052;
526+
*(u32*)(0x02007a08) = 0xe59f1030;
527+
*(u32*)(0x02007a0c) = 0xe59f0028;
528+
*(u32*)(0x02007a10) = 0xe0281097;
529+
*(u32*)(0x02007a14) = 0xea000003;
530+
}
531+
532+
// 0676 - Akumajou Dracula - Gallery of Labyrinth (Japan)
533+
if(ROM_TID == 0x4a424341){
534+
*(u32*)(0x02007910) = 0xeb0250b0;
535+
*(u32*)(0x02007918) = 0xea000004;
536+
*(u32*)(0x02007a00) = 0xeb025074;
537+
*(u32*)(0x02007a08) = 0xe59f1030;
538+
*(u32*)(0x02007a0c) = 0xe59f0028;
539+
*(u32*)(0x02007a10) = 0xe0281097;
540+
*(u32*)(0x02007a14) = 0xea000003;
541+
}
542+
543+
// 0881 - Castlevania - Portrait of Ruin (Europe) (En,Fr,De,Es,It)
544+
if(ROM_TID == 0x4a424341){
545+
*(u32*)(0x02007b00) = 0xeb025370;
546+
*(u32*)(0x02007b08) = 0xea000004;
547+
*(u32*)(0x02007bf0) = 0xeb025334;
548+
*(u32*)(0x02007bf8) = 0xe59f1030;
549+
*(u32*)(0x02007bfc) = 0xe59f0028;
550+
*(u32*)(0x02007c00) = 0xe0281097;
551+
*(u32*)(0x02007c04) = 0xea000003;
552+
}
520553

521554
// "Chrono Trigger (Japan)"
522555
//if(ROM_TID == 0x4a555159){

0 commit comments

Comments
 (0)