Commit Graph

9 Commits

Author SHA1 Message Date
Benjamin Popp
1fb1460965 Add movement data from script 2020-04-21 08:16:10 -05:00
Benjamin Popp
3d441ce570 Add text decoding 2020-04-20 16:26:18 -05:00
Benjamin Popp
0e37719ca2 Use an anchor instead of a run for the initial XSE script add 2020-04-20 15:38:27 -05:00
Benjamin Popp
85422d06e1 Make it possible to edit scripts inline
Also add support for operator decoding for if statements
Inform users on repoint
2020-04-20 14:56:28 -05:00
Benjamin Popp
5b11e11c7a Parse argless commands correctly 2020-04-20 12:43:40 -05:00
Benjamin Popp
b79d7a6ea1 Allow inline script editing 2020-04-20 11:18:42 -05:00
Benjamin Popp
9c0732c2da Load useful scripting info when opening from AMap
* Add XSERun, which right now is just a 1-byte header that marks the start of a script segment.
* Add the ability to cascade down through script segments to find all endpoints, adding XSERuns and pointers as needed.
2020-04-18 16:08:04 -05:00
Benjamin Popp
3e8fd018a1 Refactor Singletons
Previously, the creating a new ViewPort loaded from 2 text files and creating a new HardcodeTablesMoel loaded from 1 text file. This is a lot of parsing!

Refactor to do the parsing once, in the EditorViewModel, using a Singleton class to hold the non-editable loaded data. Inject that data into the appropriate structers later on.

To prevent massive refactoring in the tests, not every ViewPort needs to be given a Singletons instance. Instead, allow a ViewPort to still do its own parsing. However, BaseViewModelTestClass has been updated to make this work for a majority of tests, along with changes to AutoSearchTests's fixture and several of the Setup methods that are used by multiple tests.
2020-02-08 21:25:48 -06:00
Benjamin Popp
7f2655655e Add Scripting to Code Tool
Being able to dissassemble ARM code is only half of the code that hackers want to see. They also need to be able to read/write pokescript, often done via tools like XSE. Eventually I can be more intelligent with scripts, but for now a simple decoder is plenty.
2019-07-17 22:02:15 -05:00