changeset 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 3ceb0efd261f
children 6ab7ddc038f9
files FrmMain.cs
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line diff
     1.1 --- a/FrmMain.cs	Thu Aug 13 21:16:21 2009 +0000
     1.2 +++ b/FrmMain.cs	Sat Aug 15 09:38:21 2009 +0000
     1.3 @@ -149,13 +149,7 @@
     1.4  
     1.5              // hack to load default files
     1.6              WarFoundryLoader.GetDefault().AddLoadDirectory(new DirectoryInfo(Constants.ExecutablePath + Constants.DirectoryString + DefaultDataDir));
     1.7 -
     1.8 -            IWarFoundryFactory factory = WarFoundryFactoryFactory.GetFactoryFactory().GetFactory(typeof(WarFoundryXmlFactory));
     1.9 -
    1.10 -            if (factory != null && factory is WarFoundryXmlFactory)
    1.11 -            {
    1.12 -                WarFoundryLoader.GetDefault().RegisterFactory((WarFoundryXmlFactory)factory);
    1.13 -            }
    1.14 +            WarFoundryLoader.GetDefault().RegisterFactory(WarFoundryXmlFactory.GetFactory());
    1.15  
    1.16  			/*
    1.17  			if (args.Length == 1)