Skip to content

Commit

Permalink
Rename for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
FenPhoenix committed May 13, 2020
1 parent 2af9b07 commit 4250151
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions AngelLoader/FMInstallAndPlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private static bool PlayFM(FanMission fm, bool playMP = false)
string args = !steamArgs.IsEmpty() ? steamArgs : "-fm";
#endif

AddMissFlagFileIfRequired(fm);
GenerateMissFlagFileIfRequired(fm);

WriteStubCommFile(fm, gamePath);

Expand Down Expand Up @@ -201,7 +201,7 @@ internal static bool OpenFMInEditor(FanMission fm)
SetCamCfgLanguage(gamePath, "");

// Why not
AddMissFlagFileIfRequired(fm);
GenerateMissFlagFileIfRequired(fm);

// We don't need the stub for DromEd, cause we don't need to pass anything except the fm folder
StartExe(editorExe, gamePath, "-fm=\"" + fm.InstalledDir + "\"");
Expand Down Expand Up @@ -678,7 +678,7 @@ private static (bool Success, string SteamExe, string SteamWorkingPath, string A

#endregion

private static void AddMissFlagFileIfRequired(FanMission fm)
private static void GenerateMissFlagFileIfRequired(FanMission fm)
{
// Only T1 and T2 have/require missflag.str
if (fm.Game != Game.Thief1 && fm.Game != Game.Thief2) return;
Expand Down Expand Up @@ -746,7 +746,7 @@ bool MissFlagFilesExist()
}
catch (Exception ex)
{
Log(nameof(AddMissFlagFileIfRequired) + ": Exception trying to write missflag.str file", ex);
Log(nameof(GenerateMissFlagFileIfRequired) + ": Exception trying to write missflag.str file", ex);
return;
}
}
Expand Down Expand Up @@ -1320,7 +1320,7 @@ await Task.Run(() =>
}

// Don't be lazy about this; there can be no harm and only benefits by doing it right away
AddMissFlagFileIfRequired(fm);
GenerateMissFlagFileIfRequired(fm);

// TODO: Put up a "Restoring saves and screenshots" box here to avoid the "converting files" one lasting beyond its time?
try
Expand Down

0 comments on commit 4250151

Please sign in to comment.