Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: prefer pathlib and general cleanup #203

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Root-Core
Copy link
Contributor

Cherry-picked and adopted from #152

There might some conflicts with the other PRs, but they should be trivial to resolve.

This PR prefers pathlib over joined strings and uses it's API to prevent bugs and code smells.
Some common functions are also moved out of individual fixes and now available in utils.py.
Some things are reimplemented and some are cleaned up.

@Root-Core Root-Core changed the title Refactor: prefere pathlib and general cleanup Refactor: prefer pathlib and general cleanup Jan 9, 2025
- Use pathlib if possible
- Return Path() object is possible
- Parse ProtonVersion correctly
- Reimplemented get_resolution() with RegEx
- Reimplemented _get_case_insensitive_name()
- Reimplemented _killhanging()
- Reimplemented _checkinstalled()
- Improved some logging
- Some caching
util.py:
- Added create_dos_device()
- Added patch_conf_value()
- Added patch_voodoo_conf()
- Added get_path_syswow64()
- Moved class ReplaceType from Bethesda mod support (class Redirect)

Other:
- Refactored gamefixes to use pathlib
- Simplified / reimplemented some fixes
- Some docstrings
- Linked Gobliiins 5 demo to main game
- Unified Gothic 3 and Gothic 3 Forsaken Gods Enhanced Edition
- Fixes after rebase
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