Skip to content

Commit 56a9316

Browse files
committed
ModAPI.Common: make logic in SporePath.SporeIsInstalledOnStream() readable
1 parent 25cf9f8 commit 56a9316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ModAPI.Common/SporePath.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static bool SporeIsInstalledOnSteam()
6363
{
6464
object result = Registry.GetValue(SteamAppsKey + GalacticAdventuresSteamID, "Installed", 0);
6565
// returns null if the key does not exist, or default value if the key existed but the value did not
66-
return result == null ? false : ((int)result == 0 ? false : true);
66+
return result != null && ((int)result != 0);
6767
}
6868

6969
public static string GetFromRegistry(Game game)

0 commit comments

Comments
 (0)