summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAjarmar <axel.jarmar@gmail.com>2021-03-04 22:09:56 +0100
committerAjarmar <axel.jarmar@gmail.com>2021-03-04 22:09:56 +0100
commitbdbe53cd8874a5a29f07e4f4f05a6b888826aa75 (patch)
treed118a36e6c02c2ba6f422f738753ee4c32995ba0 /src
parentb758da571b3b85daad7b99f3c3257a0227fccf3e (diff)
fix settings updater for pre-4.1.0 settings files
Diffstat (limited to 'src')
-rw-r--r--src/com/dabomstew/pkrandom/SettingsUpdater.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/dabomstew/pkrandom/SettingsUpdater.java b/src/com/dabomstew/pkrandom/SettingsUpdater.java
index bdd43f9..ed5464d 100644
--- a/src/com/dabomstew/pkrandom/SettingsUpdater.java
+++ b/src/com/dabomstew/pkrandom/SettingsUpdater.java
@@ -271,6 +271,15 @@ public class SettingsUpdater {
insertExtraByte(45, (byte) 0);
}
+ if (oldVersion < 314) {
+
+ // exp curve
+ insertExtraByte(46, (byte) 0);
+
+ // static level modifier
+ insertExtraByte(47, (byte) 50);
+ }
+
// fix checksum
CRC32 checksum = new CRC32();
checksum.update(dataBlock, 0, actualDataLength - 8);