public frmConfigureController(frmConfigure form) { this.form = form; root = new Root(); AudioConfig = new AudioConfigure(); GameConfig = new GameConfigure(); GraphicConfig = new GraphicConfigure(); ResourceConfig = new ResourceConfigure(); gameXmlConfig = GameConfigXml.Load("game.xml", root); form.Controller = this; }
public frmConfigureController(frmConfigure form) { this.form = form; AudioConfig = new AudioConfigure(); GameConfig = new GameConfigure(); GraphicConfig = new GraphicConfigure(); parser = new IniConfigFileParser(); gameCfg = (IniConfigFile)parser.Load("game.cfg"); ogreCfg = (IniConfigFile)parser.Load("ogre.cfg"); r = new Root(); form.Controller = this; }