Commit Graph

12 Commits

Author SHA1 Message Date
Kurt
fd4f83ba40 Condense expression for EncryptedInt32
Bitwise operations were done manually; use intrinsics for clearer intent.
2026-01-16 15:43:41 -06:00
Kurt
0ad0ee0697 Rewrite crypto to use span 2026-01-14 16:42:57 -06:00
Kurt
fa3f0e3cc8
Update to .NET 10 (#683) 2026-01-13 16:02:58 -06:00
Kurt
f316ffce9e Minor tweaks
no functional change
2021-01-28 07:07:41 -08:00
Kurt
6c40e1c769
Initial v1.7.0 Support (#445)
* Pre-patch preparations

* Update magic values

* Check formatting characters directly rather than string compare

"Brown".StartsWith("\u000e")
>true
what

let's be paranoid here, because .NET Core behaves differently from .NET framework.

* Update FileHashRevision.cs

Postbox with the massive decrease in size; likely the same mutation caused the other massive decreases.

* Dump item names

* Update flag definitions

* Update item info

* Add feathers to bug list

Might remove later.

* Update RecipeList.cs

* Update ItemRemakeUtil.cs

* Update stack details

* Update offsets

* Update MainSaveOffsets17.cs

* Update GameLists.cs
2021-01-27 20:04:51 -08:00
Kurt
83169b8738 Bump language version to c#9 2020-12-24 23:53:40 -08:00
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