Isn't needed but is relevant; earlier commit da47ee2f3c fixes the issue directly but this also fixes (and properly modifies all relevant aspects of the object).
Was originally intended to edit Wallpapers; felt like editing the
hardest but most lucrative thing instead :)
Maybe Wallpapers will be an editor in the future!
More user friendly (even though this is already so cryptic to begin
with), to help users differentiate between the purpose of the folder and
the unique count it contains (to separate a given game from another
backup).
Saving with no Pokemon will default to 1.
A different amount of Pokemon will require a new skeleton to be filled
in with the entered data, instead of not having anything allocated to
hold the data.
Fixes the hang bug that was reported, and includes new improvements:
Assigning a new species is done within the same line as assigning the
pkm info for visual ease.
Enabled BST (smart) randomization for type themed trainers, and
implemented an expanding window if the initial search stat range is
insufficient.
Could probably speed up things by just defining a full personal array
instead of fetching every time, but whatever.
With this change, the starters given will match.
Note: Getting modified CROs to load (with modifications outside .data)
does not yet have a solution. Running the CRO editors will cause your
game to blackscreen at this time.
BinaryWriters automatically dispose the MemoryStream it is using when
the BinaryWriter is disposed of; the fix is to Flush instead of Dispose
when finished (and let the GC handle disposing when it is appropriate to
do so).
If header size is nonstandard (ie, has padding afterwards), the user can
update the file.
Thanks Mixeli for figuring out that this is required for these files.