Skip to content

[451] Add steamCMD cache clear options - #576

Merged
hk21702 merged 13 commits into
mainfrom
steamcmd-cache-clear-options
Oct 12, 2024
Merged

hk21702 merged 13 commits into
mainfrom
steamcmd-cache-clear-options

Conversation

@hk21702

@hk21702 hk21702 commented Aug 21, 2024

Copy link
Copy Markdown
Collaborator

Hopefully fixes #451

Adds options to manually clear steamCMD depot cache, or auto-clear it before any steamCMD download operation.
By default, the option to auto-clear it before steamCMD download operations is enabled. This can be disabled in the settings.

This PR also implements a helper function to more robustly handle rmtree calls. Eventually, everything should be migrated to use this as it has special handling for OSErrors which should not cause fatal crashes for the app in most cases, but instead warn the user.

This PR is dependent on #554 as it uses some of the dialogue classes implemented there.

As a side note, I wonder if the steamCMD wrapper should be re-implemented as a controller. Additionally, it might make sense to rework the settings controller so it is more easily extendable.

@hk21702 hk21702 added bugs 🪲 bugs and errors, something is not working as intended feature/improvement 🆕 Use this label to mark new feature or improvement requests labels Aug 21, 2024
@hk21702 hk21702 self-assigned this Aug 21, 2024
@github-actions github-actions Bot added DevOps 💻 Related to development automation, auto building, auto actions, and other CI/CD things dependencies Pull requests that update a dependency file labels Aug 21, 2024
@hk21702
hk21702 marked this pull request as draft August 26, 2024 20:03
@hk21702

hk21702 commented Aug 26, 2024 •

Copy link
Copy Markdown
Collaborator Author

Setting this to draft since clearing the depot cache may not be the full solution. It still needs to be explored.

@twstagg twstagg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this. Coupled with #623 i think these will be some good QoL features

@hk21702

hk21702 commented Oct 11, 2024

Copy link
Copy Markdown
Collaborator Author

@twstagg Please re-review since there were lots of merge conflicts with main I had to resolve. Just want to make sure nothing broke.

@hk21702
hk21702 requested a review from twstagg October 11, 2024 09:43

@twstagg twstagg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to still work as intended for me. Go nuts!

@hk21702
hk21702 merged commit f5d61f9 into main Oct 12, 2024
@hk21702
hk21702 deleted the steamcmd-cache-clear-options branch October 12, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugs 🪲 bugs and errors, something is not working as intended dependencies Pull requests that update a dependency file DevOps 💻 Related to development automation, auto building, auto actions, and other CI/CD things feature/improvement 🆕 Use this label to mark new feature or improvement requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FIXME: SteamCMD (Probably) tries to restore previously deleted mods.

2 participants