Commit Graph

45 Commits

Author SHA1 Message Date
Jelle
986a84fa5f Add prefix support 2022-10-17 13:00:16 +02:00
Jelle
46ca817907 Fix bugs + make it working 2022-10-17 13:00:16 +02:00
Jelle
808629ac0f Brute force hash decoder test 2022-10-17 13:00:15 +02:00
Kurt
efb34f556b Minor tweaks
Reduce allocation of button string fetch (for fun!)
Type return covariance for Editors (no longer limited by netframework!)
2022-10-02 10:24:44 -07:00
Kurt
33a2ab24f1 Minor clean 2022-10-01 17:46:11 -07:00
Kurt
2578ba073c Refactoring
File scoped namespaces for all lib projects
netstandard2.0 => net6; now uniform. bye netframework!
2022-10-01 17:08:17 -07:00
Kurt
05bbdb98e1 Enable trainer saving
untested
2022-02-19 17:34:30 -08:00
Kurt
a14c203ff3 Rough draft area editor 2022-02-19 14:20:00 -08:00
Kurt
d27891407a Pre-work for area editing 2022-02-19 12:21:09 -08:00
Kurt
a3874463d9 Add general Config file flatbuffer & editors
Add alert about missing oodle DLL
2022-02-11 17:49:13 -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
Koopa
86c480527b
Upgrade .NET target to 4.6.1.
This will be required for System.Resources.Extensions.
2021-02-28 02:02:31 -05:00
Michael Scire
a1f2ee0eff Add support for dumping static encounter spawners 2021-01-14 18:24:55 -08:00
Kurt
955ba9fed6 Enable nullable checks for all subprojects except structures/game 2020-12-27 16:35:08 -08:00
Kurt
22ef506b4e Update for c#9 syntax sugar 2020-12-27 12:47:46 -08:00
Kurt
c91892d241 Update csproj to c#9
sdk style for winforms/sprites, finally
2020-12-27 12:46:47 -08:00
Kurt
d407506c30 Mior clean
reduce compiler messages
2020-10-25 13:17:04 -07:00
Kurt
4cf69da7e5 Minor clean
no functional change
2020-06-02 07:11:11 -07:00
Kurt
ad058f42d0 Refactoring / clean
remove some compiler messages
2020-05-24 13:00:34 -07:00
Kurt
58b0597fea Sword/Shield Update
Many thanks to @SciresM and @sora10pls for assisting in this massive
update!
2019-11-15 17:00:41 -08:00
Kurt
537ce93efa Initial c#8 update
pkNX.Sprites to be replaced with a pkhex.drawing dll once that is
updated with swsh stuff (when the time comes)
2019-10-15 18:47:20 -07:00
Kurt
b611df6823 Misc clean
no functional change
2019-03-19 17:36:27 -07:00
Kurt
9e075dccbc Fix gfpak structure r/w
Turns out the 'HashIndexes' are split up into separate folders, with the
first entry being the folder info.

replicate packing alignment ez (0x10)
2018-12-12 21:42:51 -08:00
Kurt
c8abf79e67 Fix folder modify tracking
Data[index] can be null if the file has never been loaded, which ends up
being ignored for modification tracking, thus never saving.
bulk imports didn't load all files, so just double check the file from
disk
2018-12-06 16:36:55 -08:00
Kurt
992b1e09a9 Fix compression skip 2018-12-01 12:56:12 -08:00
Kurt
0062f6cf24 Add nso r/w (exefs)
compression results in different lengths (overall better) but I doubt it
will impact loading
2018-12-01 10:03:20 -08:00
Kurt
a4b66f37ff Fix singlefile not being saved
gifts/statics/etc
so simple to overlook
2018-11-28 21:23:53 -08:00
Kurt
553516603d Fix header write 2018-11-26 22:24:44 -08:00
Kurt
3b8d3a5e4a Write single file instead of calling dump 2018-11-26 22:11:51 -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
ed485e0643 Add r/w mitm path replacements 2018-11-26 21:52:45 -08:00
Kurt
7572f7940f Set up container r/w mitm 2018-11-26 21:36:43 -08:00
Kurt
dec088766c Update singlefile usage 2018-11-26 17:07:21 -08:00
Kurt
ea6c8d3158 Track modification for single file edits 2018-11-26 17:05:42 -08:00
Kurt
a8113c0ba4 add gift/static editors
pretty lazy un-annotated properties but meh
2018-11-24 14:27:39 -08:00
Kurt
d9eb72db50 return new array from cache
yay passing array reference to editor, and checking that same reference
against itself
2018-11-24 11:58:06 -08:00
Kurt
09a4385842 Add simple editor for item/move
Allows dumping of data to tab separated string for pasting in
excel/openoffice calc.
2018-11-20 22:55:35 -08:00
Kurt
2d2ab21bf0 Misc fixes
Use personaltable logic from pkhex, fix some file loading
2018-11-18 17:38:30 -08:00
Kurt
0097df9a23 Add container writing on program close 2018-11-17 13:53:54 -08:00
Kurt
ba93188786 Don't initialize if already initialized 2018-11-17 12:31:18 -08:00
Kurt
d780a03694 Update container modified & saving logic
On saveall only clear cache at end
allow cancellation of modifications -- clear cached modifications /
revert to backup
2018-11-17 11:42:39 -08:00
Kurt
506484e804 Update folder container behavior
Folder must be initialized (with an optional filter) prior to having
files available.
gg text folders have .tbl and .dat; we only want the .dat
2018-11-17 09:16:40 -08:00
Kurt
e8cd9cc30f Misc updates
Recognize & init GG data when dropping folder in (containing rom/exe
folders)
2018-11-13 22:19:19 -08:00
Kurt
52d70f0b9f Initial Commit 2018-11-13 19:44:43 -08:00