Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
changeset 106:41e82ba675dc
Re #324: Add saving of Race and System data to files
* Swap to new method call for saving army
* Temporarily cause NullRef exceptions by removing the setting of a saver
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 28 Feb 2011 21:10:18 +0000 |
parents | 0ddef7087602 |
children | f7e02b1d96e1 |
files | FrmMainWindow.cs |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/FrmMainWindow.cs Mon Feb 28 20:23:22 2011 +0000 +++ b/FrmMainWindow.cs Mon Feb 28 21:10:18 2011 +0000 @@ -158,7 +158,8 @@ WarFoundryLoader.GetDefault().AddLoadDirectory(new DirectoryInfo(Constants.ExecutablePath + Constants.DirectoryString + "data")); WarFoundryLoader.GetDefault().RegisterFactory(WarFoundryXmlFactory.GetFactory()); WarFoundryLoader.GetDefault().FileLoadingFinished += FileLoadingFinished; - WarFoundrySaver.SetFileSaver(new WarFoundryXmlSaver()); + //TODO: Replace with a new saver using the "lots of files in one" interface + //WarFoundrySaver.SetFileSaver(new WarFoundryXmlArmySaver()); logger.Debug("Initialising complete - seeing if we can load default army or system"); @@ -900,7 +901,7 @@ try { - saveSuccess = WarFoundrySaver.GetSaver().Save(WarFoundryCore.CurrentArmy, filePath); + saveSuccess = WarFoundrySaver.GetSaver().Save(filePath, WarFoundryCore.CurrentArmy); } catch (Exception ex) {