Commit graph

17 commits

Author SHA1 Message Date
Lyle Mantooth fed38efcc4
Add back options passed by ALttpDoorRandomizer.
Even though they aren't used, we have to declare them to parse them.
2022-06-04 14:38:35 -04:00
Lyle Mantooth 76ff991e8f
Conform to serialization used by ALttpDoorRandomizer. 2022-06-04 14:37:12 -04:00
Lyle Mantooth 975d6fd420
PatchSet only serializes patches to the file. 2022-06-04 14:35:44 -04:00
Lyle Mantooth 4cbc70eeca
Make it easy to write options file. 2022-06-04 10:00:06 -04:00
Lyle Mantooth 034af7fa92
More backwards compatibility. 2022-06-04 09:58:10 -04:00
Lyle Mantooth 27d5a4d6c0
Format! 2022-06-04 09:41:29 -04:00
Lyle Mantooth 1113adca98
Make it run (no actual randomizing yet). 2022-06-04 09:39:52 -04:00
Lyle Mantooth 8901e0e8b0
Serialize option enums to u8, for backward compatibility. 2022-06-04 09:33:11 -04:00
Lyle Mantooth 41be111857
Add RomData::is_randomizer. 2022-06-01 09:53:11 -04:00
Lyle Mantooth 568360206d
Begin loading ROM data for randomization.
Use the fact that the default path for the asar symbols file is just the
ROM's file with a ".sym" extension. When enemize runs, it checks if this
file exists, and if it doesn't, runs asar on the ROM to create the
symbols file.
2022-05-31 22:48:45 -04:00
Lyle Mantooth f6eb37b6fe
Use clap for processing arguments. 2022-05-31 17:08:52 -04:00
Lyle Mantooth 7cd01df7d6
Move Asar symbols into RomData.
Add move_room_headers function for base_patch_generator.
2022-05-30 01:03:30 -04:00
Lyle Mantooth 7a6689efd1
Understand better how SNES addressing works. 2022-05-29 19:16:49 -04:00
Lyle Mantooth a161d9090e
Add RomData, OptionFlags, and enums for them.
Fun error handling with automatic, fallible conversion to and from u8s
for the enums.
2022-05-29 10:22:34 -04:00
Lyle Mantooth c81348fb10
Fix up compiler issues. 2022-05-24 22:53:15 -04:00
Lyle Mantooth 476f01fad3
Fix bin_comp and factor out Patch struct to base lib. 2022-05-23 09:46:44 -04:00
Lyle Mantooth c78df56306
Initial commit.
BinComp ported to Rust.
2022-05-22 12:31:39 -04:00