mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
fix shito.
This commit is contained in:
@ -875,10 +875,10 @@ void DecryptSecureArea(u8* out)
|
|||||||
|
|
||||||
memcpy(out, &CartROM[arm9base], 0x800);
|
memcpy(out, &CartROM[arm9base], 0x800);
|
||||||
|
|
||||||
Key1_InitKeycode(gamecode, 2, 2);
|
Key1_InitKeycode(false, gamecode, 2, 2);
|
||||||
Key1_Decrypt((u32*)&out[0]);
|
Key1_Decrypt((u32*)&out[0]);
|
||||||
|
|
||||||
Key1_InitKeycode(gamecode, 3, 2);
|
Key1_InitKeycode(false, gamecode, 3, 2);
|
||||||
for (u32 i = 0; i < 0x800; i += 8)
|
for (u32 i = 0; i < 0x800; i += 8)
|
||||||
Key1_Decrypt((u32*)&out[i]);
|
Key1_Decrypt((u32*)&out[i]);
|
||||||
|
|
||||||
@ -1018,7 +1018,7 @@ bool LoadROM(const char* path, const char* sram, bool direct)
|
|||||||
ROMCommandHandler = ROMCommand_Retail;
|
ROMCommandHandler = ROMCommand_Retail;
|
||||||
|
|
||||||
// encryption
|
// encryption
|
||||||
Key1_InitKeycode(gamecode, 2, 2);
|
Key1_InitKeycode(false, gamecode, 2, 2);
|
||||||
|
|
||||||
// save
|
// save
|
||||||
printf("Save file: %s\n", sram);
|
printf("Save file: %s\n", sram);
|
||||||
|
Reference in New Issue
Block a user