rhelmot / CelesteMagicTimer

Autosplitter program for Celeste on Linux
MIT License
11 stars 7 forks source link

refactored make room splits. #26

Open AdrianEdelen opened 1 year ago

AdrianEdelen commented 1 year ago

Not sure if this goes against what you are trying to do. But I am working on a GUI for the tracer + timer. I want to be able to use my own front end with the make_room_splits.py however the existing implementation isn't really conducive to it.

I refactored the script into a class, and add an if name == 'main' that retains the original functionality. running the script from a terminal should work the same. The refactor however lets the script be called elsewhere and gives the caller a little more control over the operations by splitting it up into a few methods.

I also added the option for default file names, route names, and filepaths.