diff FrmMain.cs @ 35:27b1837c837e

Re #124: Remove factory factory * Replace factory factory calls with direct invocation of GetFactory()
author IBBoard <dev@ibboard.co.uk>
date Sat, 15 Aug 2009 09:38:21 +0000
parents 526fefefb16b
children 6ab7ddc038f9
line wrap: on
line diff
--- a/FrmMain.cs	Thu Aug 13 21:16:21 2009 +0000
+++ b/FrmMain.cs	Sat Aug 15 09:38:21 2009 +0000
@@ -149,13 +149,7 @@
 
             // hack to load default files
             WarFoundryLoader.GetDefault().AddLoadDirectory(new DirectoryInfo(Constants.ExecutablePath + Constants.DirectoryString + DefaultDataDir));
-
-            IWarFoundryFactory factory = WarFoundryFactoryFactory.GetFactoryFactory().GetFactory(typeof(WarFoundryXmlFactory));
-
-            if (factory != null && factory is WarFoundryXmlFactory)
-            {
-                WarFoundryLoader.GetDefault().RegisterFactory((WarFoundryXmlFactory)factory);
-            }
+            WarFoundryLoader.GetDefault().RegisterFactory(WarFoundryXmlFactory.GetFactory());
 
 			/*
 			if (args.Length == 1)