test for a list of files when loading mods

don't cache test file string arrays
This commit is contained in:
Matthias Mailänder
2014-01-11 10:07:34 +01:00
committed by Matthias Mailänder
parent 1a77180a5d
commit b8740a3a47
7 changed files with 12 additions and 6 deletions

View File

@@ -8,8 +8,10 @@
*/
#endregion
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using OpenRA.FileFormats;
using OpenRA.Graphics;
using OpenRA.Support;
@@ -77,7 +79,7 @@ namespace OpenRA.Mods.RA
void TestAndContinue()
{
Ui.ResetAll();
if (!FileSystem.Exists(info["TestFile"]))
if (!info["TestFiles"].Split(',').All(f => FileSystem.Exists(f.Trim())))
{
var args = new WidgetArgs()
{