Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
FenPhoenix committed Oct 17, 2019
1 parent 50f43f6 commit ae2e593
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions AngelLoader/InstallAndPlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ private static bool PlayFM(FanMission fm, bool playMP = false)

SetUsAsSelector(fm.Game, gameExe, gamePath);

// Must be empty, not null, so it can be concatenated
string steamArgs = "";
string steamArgs = null;
var sv = GetSteamValues(fm.Game);
if (sv.Success) (_, gameExe, gamePath, steamArgs) = sv;

Expand Down Expand Up @@ -242,7 +241,7 @@ private static (bool Success, string gameExe, string gamePath)
private static (bool Success, string GameExe, string GamePath, string Args)
GetSteamValues(Game game)
{
if (!Config.SteamExe.IsEmpty() && File.Exists(Config.SteamExe) && Config.LaunchGamesWithSteam &&
if (Config.LaunchGamesWithSteam && !Config.SteamExe.IsEmpty() && File.Exists(Config.SteamExe) &&
((game == Game.Thief1 && Config.T1UseSteam) ||
(game == Game.Thief2 && Config.T2UseSteam) ||
(game == Game.Thief3 && Config.T3UseSteam)))
Expand Down

0 comments on commit ae2e593

Please sign in to comment.