We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25cf9f8 commit 56a9316Copy full SHA for 56a9316
ModAPI.Common/SporePath.cs
@@ -63,7 +63,7 @@ public static bool SporeIsInstalledOnSteam()
63
{
64
object result = Registry.GetValue(SteamAppsKey + GalacticAdventuresSteamID, "Installed", 0);
65
// 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);
+ return result != null && ((int)result != 0);
67
}
68
69
public static string GetFromRegistry(Game game)
0 commit comments