Skip to content

Refactoring attempt#1

Open
UplinkPhobia wants to merge 3 commits intoeemmy:mainfrom
UplinkPhobia:main
Open

Refactoring attempt#1
UplinkPhobia wants to merge 3 commits intoeemmy:mainfrom
UplinkPhobia:main

Conversation

@UplinkPhobia
Copy link
Copy Markdown

This is far from perfect, considering that I basically know nothing about ReShade, Basalt, or anything related to those.
As such, this "pull request" is more of an attempt at helping refactoring the python code itself, than the logic behind it.
I don't have many files to test with, and I don't know what an expected result is precisely, so this will need a lot of testing that I'm not qualified to make.

Changes include a lot of simplifications (maybe a bit too much actually, since I completely destroyed the object-oriented structure, but I didn't see any advantage with it), and the use of GitPython and Click to respectively have a more robust git handling and CLI.

I can't be sure that the behaviour is the same as intended, since the original code didn't work for me. I tried to keep the logic intact from what I understood of the code itself, but that's basically it.
Also, this is more of a draft than anything. I didn't really spend time polishing it, since I don't know if it's worth anything (or even working at all).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant