UncleGoogle / galaxy-integration-humblebundle

Humble Bundle integration for GOG Galaxy 2.0
GNU General Public License v3.0
188 stars 18 forks source link

Fix for recognizing re-installed games #45

Closed UncleGoogle closed 4 years ago

UncleGoogle commented 4 years ago

Fixes #34 cache installed programs number + gets rid of premature optimization for subkey names.

That means for every new installation plugin will recheck all uninstall keys (~2sec of a bit higher CPU usage), what is acceptable as the installation process has high CPU drain itself.

Previously the plugin was using cache to omit already scanned keys, but A) it wasn't so efficient, as getting subkey name also takes some resources; B) it fails on game re-installation. It is not so uncommon case as people may want to reinstall game when encounter any problem with it (or just to use another hard drive)