nhok0169 / Anime-Game-Remap

Anime Game Remap/Fix/Convert
https://anime-game-remap.readthedocs.io/en/latest/
Apache License 2.0
20 stars 13 forks source link

Add undo fix feature #7

Closed Alex-Au1 closed 1 year ago

Alex-Au1 commented 1 year ago

Users do not have to go to every folder and manually delete/change files before they rerun the script in case their first run failed

By default, when the user clicks on the script or runs the program on CLI without arguments, the script undo changes from previous runs, then adds its new changes.

From this feature, added options of whether to undo without any fix or vice versa (fix without any undo)

Note:

Since the modified .ini language used for mods is a CFG (context free grammar), using Regex is not the best solution for parsing. But the parsing in the undo feature would be fine for general use cases.

Alex-Au1 commented 1 year ago

if this pull request is merged before this other pull request, then the other pull request can be closed closed since this pull request includes its changes (and to avoid any unnecessary merge conflicts)