Skip to content

Proton-tkg: Refactor to use download_file #525

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sonic2kk
Copy link
Contributor

@sonic2kk sonic2kk commented Apr 9, 2025

This PR refactors the Proton-tkg ctmod to use the download_file util function. This is in a similar vein to other PRs that migrate compatibility tools to using

I am eyeing up a larger refactor and cleanup of this ctmod (improved type hinting, reducing code duplication between it and DXVK Nightly following #509, extracting the archive extraction logic into an __extract method that each ctmod can implement instead of the Proton-tkg ctmod having to be aware of how to extract all of its child classes, maybe some other fun things in future too!) and this PR is the beginnings of that :-)

This PR is opened as a draft as it is largely untested, and I want to make sure it works against all the Proton-tkg ctmods. I tested briefly with the main Proton-tkg Ctmod and it appeared to work, but we have many child ctmods and I want to ensure each download and extract properly :-)

Thanks!

@sonic2kk sonic2kk force-pushed the protontkg-use-download-file branch from 706e9ea to 26e3172 Compare April 9, 2025 01:11
@sonic2kk sonic2kk force-pushed the protontkg-use-download-file branch from 26e3172 to ced4303 Compare April 9, 2025 01:18
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