Codeusa / SteamCleaner

:us: A PC utility for restoring disk space from various game clients like Origin, Steam, Uplay, Battle.net, GoG and Nexon :us:
https://andrew.im/
GNU General Public License v3.0
1.97k stars 96 forks source link

Steam library not found if default location doesn't exist #27

Closed campbeb closed 8 years ago

campbeb commented 8 years ago

When I run SteamCleaner, it doesn't find my Steam games.

The problem is that the program assumes a common folder exists where Steam is installed, but I don't have one there (I didn't manually remove it, it just isn't there).

image

AnalyzerService::FindPaths tries to lookup a directory that doesn't exist, an exception is thrown, and the loop for looking up Steam games gets exited before my actual path gets processed.

Exception thrown: 'System.IO.DirectoryNotFoundException' in mscorlib.dll
Could not find a part of the path 'C:\Program Files (x86)\Steam\SteamApps\common'.
karasuhebi commented 8 years ago

This happens to me too. Version 2.0 works fine but 2.1 fails. As soon as I add an empty "common" folder to C:\Program Files (x86)/Steam/SteamApps/" it works fine.

EDIT: This looks to be more widespread than just Steam though. Here's screenshots for what 2.0 finds and what 2.1 finds: 2.0 - https://i.imgur.com/xQVyTwh.png 2.1 - https://i.imgur.com/XJ671wW.png