From a332fba702a8551a7d828f4e127c30e25267795b Mon Sep 17 00:00:00 2001 From: IceReaper Date: Wed, 5 Apr 2023 12:23:51 +0200 Subject: [PATCH] IDFiles should be optional. --- OpenRA.Mods.Common/Installer/InstallerUtils.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.Common/Installer/InstallerUtils.cs b/OpenRA.Mods.Common/Installer/InstallerUtils.cs index d0b4144a75..0f0f71a42e 100644 --- a/OpenRA.Mods.Common/Installer/InstallerUtils.cs +++ b/OpenRA.Mods.Common/Installer/InstallerUtils.cs @@ -20,6 +20,9 @@ namespace OpenRA.Mods.Common.Installer { public static bool IsValidSourcePath(string path, ModContent.ModSource source) { + if (source.IDFiles == null) + return true; + try { foreach (var kv in source.IDFiles.Nodes)