Commit Graph

6 Commits

Author SHA1 Message Date
Kurt
de6190ed79 Improve error message for bad encrypted int 2020-04-26 18:30:23 -07:00
Kurt
be0a456067 Decrypt savefile in-place (less allocation)
Each player and main.dat is ~11MB of allocation to read; old would read & decrypt into separate array = 22MB * (1 + playerCount). Cutting this in half reduces the amount of allocation and keeps stuff off gen2 LOH
2020-04-17 14:00:34 -07:00
Kurt
b71b040a3a Remove unused logic, add test case 2020-04-04 15:47:57 -07:00
Kurt
ea5482cfc9 Verify encrypted ints on read
throw an exception if corrupt
2020-04-03 17:44:44 -07:00
Kurt
786aad69f0 Clamp shift max 2020-03-29 12:33:27 -07:00
Kurt
fb13723b01 Initial commit 2020-03-27 17:54:17 -07:00