thpatch / thcrap

Touhou Community Reliant Automatic Patcher
https://www.thpatch.net
The Unlicense
551 stars 41 forks source link

[configure] Ignore temp directories when scanning #184

Open brliron opened 2 years ago

brliron commented 2 years ago

We should ignore AppData/Local/Temp/ (or whatever are the temporary directories on the running machine, let's not hardcode a path), unzip utilities tend to left game files hanging there, and we don't want to show them as the result of the search when searching on the whole computer. We could also ignore C:\Windows (again, there's an API to get the real path), I don't think any sane person would put their games in there, and I bet it would cut a significant time out of the search.

DankRank commented 2 years ago

Probably also a good idea to ignore both appdatas (but specifically not ignore %localappdata%\Programs, aka FOLDERID_UserProgramFiles)