mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 05:50:22 +00:00
Implemented CGSE corruption warning for ORAS saves.
This commit is contained in:
parent
8fdff1bcb0
commit
333f609bcd
2 changed files with 2 additions and 1 deletions
|
@ -4872,7 +4872,6 @@ namespace PKHeX
|
||||||
byte[] cybersav = new Byte[0x65600];
|
byte[] cybersav = new Byte[0x65600];
|
||||||
if (savegame_oras) cybersav = new Byte[0x76000];
|
if (savegame_oras) cybersav = new Byte[0x76000];
|
||||||
Array.Copy(editedsav, 0x5400, cybersav, 0, cybersav.Length);
|
Array.Copy(editedsav, 0x5400, cybersav, 0, cybersav.Length);
|
||||||
if (savegame_oras) goto postcheck;
|
|
||||||
// Chunk Error Checking
|
// Chunk Error Checking
|
||||||
byte[] FFFF = new Byte[0x200];
|
byte[] FFFF = new Byte[0x200];
|
||||||
byte[] section = new Byte[0x200];
|
byte[] section = new Byte[0x200];
|
||||||
|
|
|
@ -491,6 +491,8 @@ namespace PKHeX
|
||||||
// Encounter Count Writing (999*all species)
|
// Encounter Count Writing (999*all species)
|
||||||
for (int i = 0; i < 0x2D1; i++)
|
for (int i = 0; i < 0x2D1; i++)
|
||||||
Array.Copy(BitConverter.GetBytes(999), 0, sav, sv + 0x5400 + 0x15686 + i * 2, 2);
|
Array.Copy(BitConverter.GetBytes(999), 0, sav, sv + 0x5400 + 0x15686 + i * 2, 2);
|
||||||
|
// Turn off Italian Petlil
|
||||||
|
sav[0x1A9DF + sv] &= 0xFE;
|
||||||
|
|
||||||
// Forms Bool Writing
|
// Forms Bool Writing
|
||||||
for (int i = 0; i < 0x9C; i++)
|
for (int i = 0; i < 0x9C; i++)
|
||||||
|
|
Loading…
Reference in a new issue