comparison API/WarFoundryHacks.cs @ 481:81f32062c9fa

Re #419: Remove assumptions of a file-based install * Convert schemas to resources and load them from there * Remove use of "data" folder relative to exe location from default "Hacks" (GTK/WinForms GUIs can re-add it locally)
author IBBoard <dev@ibboard.co.uk>
date Mon, 25 Jun 2012 21:04:02 +0100
parents 1a632b133606
children 4d6c92744254
comparison
equal deleted inserted replaced
480:e0641e0eb86c 481:81f32062c9fa
17 public class WarFoundryHacks 17 public class WarFoundryHacks
18 { 18 {
19 public static void Initialise() 19 public static void Initialise()
20 { 20 {
21 //Set default data path - should be a preference 21 //Set default data path - should be a preference
22 WarFoundryLoader.GetDefault().AddLoadDirectory(new DirectoryInfo(Path.Combine(Constants.ExecutablePath, "data"))); 22 //WarFoundryLoader.GetDefault().AddLoadDirectory(new DirectoryInfo(Path.Combine(Constants.ExecutablePath, "data")));
23 //Make sure we have at least one loader - should be controlled by plugins 23 //Make sure we have at least one loader - should be controlled by plugins
24 WarFoundryLoader.GetDefault().RegisterFactory(WarFoundryXmlFactory.GetFactory()); 24 WarFoundryLoader.GetDefault().RegisterFactory(WarFoundryXmlFactory.GetFactory());
25 //Make sure we have a way to save files - should be controlled by plugins 25 //Make sure we have a way to save files - should be controlled by plugins
26 WarFoundrySaver.SetFileSaver(new WarFoundryXmlFileSaver()); 26 WarFoundrySaver.SetFileSaver(new WarFoundryXmlFileSaver());
27 //Make sure we have the requirement factories - should be controlled by plugins 27 //Make sure we have the requirement factories - should be controlled by plugins