Skip to content

Commit

Permalink
Write dropped asm vanilla code to ROM to ensure backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
aglab2 committed Jan 15, 2023
1 parent 4eb6f17 commit e139dc0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Hacktice/Patcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public void Apply()
Array.Copy(Resource.payload_header, 0, rom, 0x7f2000, Resource.payload_header.Length);
Array.Copy(Resource.payload_data, 0, rom, 0x7f2000 + Resource.payload_header.Length, Resource.payload_data.Length);

// For backwards compatibility we write in the rom stuff that was overwritten in previous hacktice versions
rom[0x57e9c] = 0xad;
rom[0x57e9d] = 0xe8;

rom[0x57ec0] = 0xa5;
rom[0x57ec1] = 0x4d;

N64CRC crcCalculator = new N64CRC();
crcCalculator.crc(rom);

Expand Down

0 comments on commit e139dc0

Please sign in to comment.