Merge pull request #4448 from Mailaender/test-files

TestFile to TestFiles in mod.yaml
This commit is contained in:
Paul Chote
2014-01-31 20:17:56 -08:00
7 changed files with 12 additions and 6 deletions

View File

@@ -51,6 +51,7 @@ NEW:
Added a new trait Demolishable for buildings to handle the C4 demolition.
Mods that use custom TileSize must specify both width and height.
If you spot black tiles in your Dune 2000 ARRAKIS maps, replace them with the remaining sand and rock tiles. Go to Map → Fix Open Areas to randomize them.
The TestFile check in mod.yaml has been renamed to TestFiles (plural!) and now supports a comma-separated list of assets that are required to load the game.
20131223:
All mods:

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;
@@ -126,7 +128,7 @@ namespace OpenRA.Mods.Cnc
void TestAndContinue()
{
Ui.ResetAll();
if (!FileSystem.Exists(loadInfo["TestFile"]))
if (!loadInfo["TestFiles"].Split(',').All(f => FileSystem.Exists(f.Trim())))
{
var args = new WidgetArgs()
{

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()
{

View File

@@ -126,7 +126,7 @@ LoadScreen: CncLoadScreen
FilesToCopy: CONQUER.MIX, DESERT.MIX, SCORES.MIX, SOUNDS.MIX, TEMPERAT.MIX, WINTER.MIX
FilesToExtract: speech.mix, tempicnh.mix, transit.mix
InstallerBackgroundWidget: INSTALL_BACKGROUND
TestFile: conquer.mix
TestFiles: conquer.mix, desert.mix, general.mix, sounds.mix, speech.mix, temperat.mix, tempicnh.mix, winter.mix
PackageURL: http://open-ra.org/download/content/cnc-packages
ServerTraits:

View File

@@ -109,7 +109,8 @@ Translations:
LoadScreen: DefaultLoadScreen
Image: mods/d2k/uibits/loadscreen.png
InstallerMenuWidget: INSTALL_PANEL
TestFile: DATA.R8
# TODO: check if DATA.R8 is at 1.03 patch level with 4840 frames
TestFiles: BLOXBASE.R8, BLOXBAT.R8, BLOXBGBS.R8, BLOXICE.R8, BLOXTREE.R8, BLOXWAST.R8, DATA.R8, SOUND.RS
PackageURL: http://open-ra.org/download/content/d2k-103-packages
Text: Filling Crates..., Breeding Sandworms...

View File

@@ -126,7 +126,7 @@ Translations:
LoadScreen: DefaultLoadScreen
Image: mods/ra/uibits/loadscreen.png
InstallerMenuWidget: INSTALL_PANEL
TestFile: redalert.mix
TestFiles: allies.mix, conquer.mix, general.mix, interior.mix, redalert.mix, russian.mix, scores.mix, snow.mix, sounds.mix, temperat.mix
PackageURL: http://open-ra.org/download/content/ra-packages
Text: Filling Crates..., Charging Capacitors..., Reticulating Splines..., Planting Trees..., Building Bridges..., Aging Empires..., Compiling EVA..., Constructing Pylons..., Activating Skynet..., Splitting Atoms...

View File

@@ -148,7 +148,7 @@ Translations:
LoadScreen: DefaultLoadScreen
Image: mods/ts/uibits/loadscreen.png
InstallerMenuWidget: INSTALL_PANEL
TestFile: isotemp.mix
TestFiles: cache.mix, conquer.mix, isosnow.mix, isotemp.mix, local.mix, sidec01.mix, sidec02.mix, sno.mix, snow.mix, sounds.mix, speech01.mix, tem.mix, temperat.mix
PackageURL: http://open-ra.org/download/content/ts-packages
Text: Updating EVA installation..., Changing perspective...