ROMaster2 / LiveSplit.VideoAutoSplit

Video Auto Splitter for LiveSplit
MIT License
37 stars 14 forks source link

refactoring #1

Closed BitPatty closed 5 years ago

BitPatty commented 5 years ago

Lots of refactoring to have a more consistent coding style throughout the project and to improve readability.

This includes:

Also maybe it would be a good idea to add .Core and .UpdateManager to the repo, would make it easier to manage the dependency paths.

Note that your plugin doesn't work on other machines, since ProfilePath is never set. Are you already loading it from an existing configuration file?

ROMaster2 commented 5 years ago

The entire Models/Features directory needs a rewrite. I copied it from the video scanner and it's been working well enough to leave alone, but it's neither maintainable nor readable. I tried rewriting it recently and got overwhelmed. I'll try to improve it during beta.

The underscore for private field/properties is good. I just didn't want to use camelCase since that gets easily mixed up in variables.

A few of the this. were kept to improve readability but it's not a problem to remove.

https://git.io/fp5eb -- Not a clue. I don't know if it's even being used. https://git.io/fp5v5 -- If someone can tell me the proper way of doing this, I'm all ears.

Otherwise it looks great. Thanks for the help!

ROMaster2 commented 5 years ago

Had to revert. It completely broke building everything. Did you build the component through LiveSplit?

BitPatty commented 5 years ago

Oh you of course have to rereference core and updatemanager, I don't build it with LiveSplit

That's the problem with not having solution files in the repository..

BitPatty commented 5 years ago

~What's the error message anyway~

Either extract it from the LiveSplit solution or reload the project into the solution