Commit Graph

11 Commits

Author SHA1 Message Date
Kurt
0a30e0ca3c Remove unsupported games, split GameData
lack of interfaces and default interface implementations is killing me :)

Split GameData so we can interact with changed data structures a little less weird; PLA Learnsets are too incompatible for direct edits with existing abstractions.
2022-02-15 01:58:27 -08:00
Kurt
e432370a40 Add Pokémon Legends: Arceus support
.NET5.0 -> .NET6.0

Co-Authored-By: SciresM <8676005+SciresM@users.noreply.github.com>
2022-02-04 18:43:21 -08:00
Kurt
639f8156ab
Handle FlatBuffers in-process with FlatSharp, and add more flatbuffer editors. (#166)
Thanks @sora10pls for double checking some editors, and @Lusamine for some field identification.

Closes #115 -- tested the pokedex after randomization and it no longer crashes when randomizing+saving with the latest code in this pull request.

Adds:
* Shop editor (SWSH + LGPE)
* Move editor
* Item editor
* Symbol (Overworld Pokemon) Behavior editor
* Default Rental team editor
2021-09-02 19:47:41 -07:00
Kurt
5cb007b9e3 Add exception handling for bad loaded/missing data
more graceful than uncaught exceptions
2021-08-08 17:21:09 -07:00
sora10pls
ae42c5ea45 Better handling of ROM dumps without ExeFS
pkNX will now prompt the user to select a version before opening the wild editor, should no ExeFS data exist to determine which game is currently loaded.
2021-04-20 12:47:39 -04:00
sora10pls
64d04182ef Re-merge wild buttons
Related: d231a411a0
2021-03-11 11:32:17 -05:00
sora10pls
d231a411a0 Properly differentiate between SW/SH
Previous implementation did not work correctly for LGPE. If someone wishes to merge the wild encounter buttons again, make sure it works for all games before submitting a pull request. Also fixes LGPE wild editor using small sprites.

Closes #110
2021-03-04 14:43:21 -05:00
Kurt
8248525955 Read edited files on load
mitm wasn't initialized until after the gameManager was, oops
2018-12-11 19:28:55 -08:00
Kurt
a81af0773d Save personal data on program close
personal is unpacked differently, add special handling before Saving
All.
2018-11-30 19:01:18 -08:00
Kurt
b5aa812e88 Add usage of file mitm to patch path instead of bak
Don't backup files in a separate folder; leave the original romfs
untouched!
When writing files, mitm the write path to the patch folder.
When reading files, mitm the read path to the patch file if it exists.
2018-11-26 22:02:42 -08:00
Kurt
2e12e326ef Make GameManager abstract 2018-11-26 21:18:50 -08:00