diff options
author | Ajarmar <axel.jarmar@gmail.com> | 2021-03-04 22:09:56 +0100 |
---|---|---|
committer | Ajarmar <axel.jarmar@gmail.com> | 2021-03-04 22:09:56 +0100 |
commit | bdbe53cd8874a5a29f07e4f4f05a6b888826aa75 (patch) | |
tree | d118a36e6c02c2ba6f422f738753ee4c32995ba0 /src | |
parent | b758da571b3b85daad7b99f3c3257a0227fccf3e (diff) |
fix settings updater for pre-4.1.0 settings files
Diffstat (limited to 'src')
-rw-r--r-- | src/com/dabomstew/pkrandom/SettingsUpdater.java | 9 |
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); |