romanianunion-glitch/DXVK-cache-saver-for-steam-games ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple bash script that helps Steam games keep their DXVK shader cache even after I clear Steam’s local shader cache or reinstall a game.

I want it to work as a Steam launch option for Linux games running through Proton or DXVK. Before the game starts, it should restore the shader cache from a backup if the backup looks newer or bigger. After the game closes, it should save the cache back again so the next launch is faster and does not stutter as much.

Please make it easy to set up, with a sensible default location for the Steam shader cache, but let me change the cache and backup folders if needed. I’d also like it to be safe and lightweight, since it’s just meant to wrap the normal game launch. If you need to check current Steam or Proton behavior, look up the latest docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab