IDFiles should be optional.
This commit is contained in:
@@ -20,6 +20,9 @@ namespace OpenRA.Mods.Common.Installer
|
|||||||
{
|
{
|
||||||
public static bool IsValidSourcePath(string path, ModContent.ModSource source)
|
public static bool IsValidSourcePath(string path, ModContent.ModSource source)
|
||||||
{
|
{
|
||||||
|
if (source.IDFiles == null)
|
||||||
|
return true;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
foreach (var kv in source.IDFiles.Nodes)
|
foreach (var kv in source.IDFiles.Nodes)
|
||||||
|
|||||||
Reference in New Issue
Block a user