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 wrap: on
line diff
--- a/API/Factories/Mock/MockRaceAndSystemFactory.cs	Wed Jul 11 20:33:11 2012 +0100
+++ b/API/Factories/Mock/MockRaceAndSystemFactory.cs	Wed Jul 11 20:54:12 2012 +0100
@@ -39,12 +39,12 @@
 		
 		protected override bool CheckCanFindRaceFileContent(ZipFile file)
 		{
-			return true;
+			return file.GetEntry("data.racex") != null;
 		}
 		
 		protected override bool CheckCanFindSystemFileContent(ZipFile file)
 		{
-			return true;
+			return file.GetEntry("data.systemx") != null;
 		}
 		
 		protected override Army CreateArmyFromStream(ZipFile file, Stream dataStream)