summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortom-overton <tom.overton@outlook.com>2022-06-16 00:19:05 -0700
committerrafa_99 <raroma09@gmail.com>2022-06-17 03:17:29 +0100
commit85bcec8b1873843bf066f66c96ed606e1ded96c5 (patch)
tree03ddc704030e1e6cf381a324c226ceedda1923ae
parent6a786b6a64da96b454b564eb0f28d6522666e884 (diff)
Fix SettingsUpdater
-rw-r--r--src/com/sneed/pkrandom/SettingsUpdater.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/sneed/pkrandom/SettingsUpdater.java b/src/com/sneed/pkrandom/SettingsUpdater.java
index 7825db0..575c8c2 100644
--- a/src/com/sneed/pkrandom/SettingsUpdater.java
+++ b/src/com/sneed/pkrandom/SettingsUpdater.java
@@ -291,6 +291,11 @@ public class SettingsUpdater {
FileFunctions.writeFullIntBigEndian(dataBlock, 28, genRestrictions);
}
+ if (oldVersion < 319) {
+ // 50 elite four unique pokemon (3 bits)
+ insertExtraByte(50, (byte) 0);
+ }
+
// fix checksum
CRC32 checksum = new CRC32();
checksum.update(dataBlock, 0, actualDataLength - 8);