changeset 230:d6883a522c70

Re #419: Remove assumptions of a file-based install * Make sure Race files aren't identified as GameSystem files
author IBBoard <dev@ibboard.co.uk>
date Wed, 11 Jul 2012 20:54:12 +0100
parents 6ec46f3db2d4
children 5e03b68dd214
files API/Factories/Mock/MockRaceAndSystemFactory.cs
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/API/Factories/Mock/MockRaceAndSystemFactory.cs	Wed Jul 11 20:33:11 2012 +0100
     1.2 +++ b/API/Factories/Mock/MockRaceAndSystemFactory.cs	Wed Jul 11 20:54:12 2012 +0100
     1.3 @@ -39,12 +39,12 @@
     1.4  		
     1.5  		protected override bool CheckCanFindRaceFileContent(ZipFile file)
     1.6  		{
     1.7 -			return true;
     1.8 +			return file.GetEntry("data.racex") != null;
     1.9  		}
    1.10  		
    1.11  		protected override bool CheckCanFindSystemFileContent(ZipFile file)
    1.12  		{
    1.13 -			return true;
    1.14 +			return file.GetEntry("data.systemx") != null;
    1.15  		}
    1.16  		
    1.17  		protected override Army CreateArmyFromStream(ZipFile file, Stream dataStream)