Skip to content

Commit

Permalink
forward comaptible
Browse files Browse the repository at this point in the history
  • Loading branch information
kianzarrin committed Aug 28, 2022
1 parent 7c97aa9 commit 81e51f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion LoadOrderMod/Patches/ContentManager/IsDLCOwnedPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ public static class IsDLCOwnedPatch {
var footballDLCs = DLCsStartingWith("Football");
dlcs.AddRange(footballDLCs);
} else {
dlcs.Add((SteamHelper.DLC)Enum.Parse(typeof(SteamHelper.DLC), item));
try {
dlcs.Add((SteamHelper.DLC)Enum.Parse(typeof(SteamHelper.DLC), item));
} catch (Exception ex) {
Log.Warning($"could not find DLC {item}.\n" + ex);
}
}
}
ExcludedDLCs = dlcs.ToArray();
Expand Down

0 comments on commit 81e51f8

Please sign in to comment.