thcrap icon indicating copy to clipboard operation
thcrap copied to clipboard

[configure] Ignore temp directories when scanning

Open brliron opened this issue 2 years ago • 1 comments

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.

brliron avatar Apr 10 '22 21:04 brliron

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

DankRank avatar Apr 11 '22 07:04 DankRank