thcrap
thcrap copied to clipboard
[configure] Ignore temp directories when scanning
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.
Probably also a good idea to ignore both appdatas (but specifically not ignore %localappdata%\Programs, aka FOLDERID_UserProgramFiles)