Skip to content

Commit

Permalink
Work:
Browse files Browse the repository at this point in the history
-Don't timeout if fms dir is missing (fail immediately)
-Don't set Installed = true on unavailable TDM FMs
  • Loading branch information
FenPhoenix committed Oct 27, 2023
1 parent d413b0d commit 9d93ac7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion AngelLoader/TDM/TDMParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ internal static List<TDM_LocalFMData> ParseMissionsInfoFile()
lines = File_ReadAllLines_List(missionsFile);
break;
}
catch(FileNotFoundException)
catch (DirectoryNotFoundException)
{
return new List<TDM_LocalFMData>();
}
catch (FileNotFoundException)
{
return new List<TDM_LocalFMData>();
}
Expand Down
2 changes: 1 addition & 1 deletion AngelLoader/TDM/TDMWatchers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private static void UpdateTDMInstalledFMStatus()
// @TDM(Case-sensitivity/UpdateTDMInstalledFMStatus): Case-sensitive compare
// Case-sensitive compare of the dir name from currentfm.txt and the dir name from our
// list.
fm.Installed = fmName != null && fm.TDMInstalledDir == fmName;
fm.Installed = fmName != null && !fm.MarkedUnavailable && fm.TDMInstalledDir == fmName;
}
}

Expand Down

0 comments on commit 9d93ac7

Please sign in to comment.