public void LoadConfig(LoadingForm loadingForm) { int statusNum = 0; // Read configuration loadingForm.UpdateStatus("Loading main configuration", statusNum++); XmlConfigParser.OpenConfig(@"Config/Config.xml"); loadingForm.UpdateStatus("Loading Miscellaneous Data", statusNum++); _miscData = XmlConfigParser.OpenWatchVarData(@"Config/MiscData.xml", "MiscDataSchema.xsd"); loadingForm.UpdateStatus("Loading Object Data", statusNum++); _objectData = XmlConfigParser.OpenWatchVarData(@"Config/ObjectData.xml", "ObjectDataSchema.xsd"); loadingForm.UpdateStatus("Loading Object Associations", statusNum++); Config.ObjectAssociations = XmlConfigParser.OpenObjectAssoc(@"Config/ObjectAssociations.xml", _slotManagerGui); loadingForm.UpdateStatus("Loading Mario Data", statusNum++); _marioData = XmlConfigParser.OpenWatchVarData(@"Config/MarioData.xml", "MarioDataSchema.xsd"); loadingForm.UpdateStatus("Loading Camera Data", statusNum++); _cameraData = XmlConfigParser.OpenWatchVarData(@"Config/CameraData.xml", "CameraDataSchema.xsd"); loadingForm.UpdateStatus("Loading Actions Data", statusNum++); _actionsData = XmlConfigParser.OpenWatchVarData(@"Config/ActionsData.xml", "MiscDataSchema.xsd"); loadingForm.UpdateStatus("Loading Water Data", statusNum++); _waterData = XmlConfigParser.OpenWatchVarData(@"Config/WaterData.xml", "MiscDataSchema.xsd"); loadingForm.UpdateStatus("Loading Input Data", statusNum++); _inputData = XmlConfigParser.OpenWatchVarData(@"Config/InputData.xml", "MiscDataSchema.xsd"); loadingForm.UpdateStatus("Loading Input Image Associations", statusNum++); XmlConfigParser.OpenInputImageAssoc(@"Config/InputImageAssociations.xml", _inputImageGui); loadingForm.UpdateStatus("Loading File Data", statusNum++); _fileData = XmlConfigParser.OpenWatchVarData(@"Config/FileData.xml", "FileDataSchema.xsd"); loadingForm.UpdateStatus("Loading File Image Associations", statusNum++); XmlConfigParser.OpenFileImageAssoc(@"Config/FileImageAssociations.xml", _fileImageGui); loadingForm.UpdateStatus("Loading Quarter Frame Data", statusNum++); _quarterFrameData = XmlConfigParser.OpenWatchVarData(@"Config/QuarterFrameData.xml", "MiscDataSchema.xsd"); loadingForm.UpdateStatus("Loading Camera Hack Data", statusNum++); _camHackData = XmlConfigParser.OpenWatchVarData(@"Config/CamHackData.xml", "MiscDataSchema.xsd"); loadingForm.UpdateStatus("Loading Triangles Data", statusNum++); _triangleData = XmlConfigParser.OpenWatchVarData(@"Config/TrianglesData.xml", "TrianglesDataSchema.xsd"); loadingForm.UpdateStatus("Loading Debug Data", statusNum++); _debugData = XmlConfigParser.OpenWatchVarData(@"Config/DebugData.xml", "MiscDataSchema.xsd"); loadingForm.UpdateStatus("Loading HUD Data", statusNum++); _hudData = XmlConfigParser.OpenWatchVarData(@"Config/HudData.xml", "HudDataSchema.xsd"); loadingForm.UpdateStatus("Loading Map Associations", statusNum++); _mapAssoc = XmlConfigParser.OpenMapAssoc(@"Config/MapAssociations.xml"); loadingForm.UpdateStatus("Loading Scripts", statusNum++); _scriptParser = XmlConfigParser.OpenScripts(@"Config/Scripts.xml"); loadingForm.UpdateStatus("Loading Hacks", statusNum++); var hacksConfig = XmlConfigParser.OpenHacks(@"Config/Hacks.xml"); Config.Hacks = hacksConfig.Item1; _romHacks = hacksConfig.Item2; loadingForm.UpdateStatus("Loading Mario Actions", statusNum++); Config.MarioActions = XmlConfigParser.OpenActionTable(@"Config/MarioActions.xml"); Config.MarioAnimations = XmlConfigParser.OpenAnimationTable(@"Config/MarioAnimations.xml"); Config.PendulumSwings = XmlConfigParser.OpenPendulumSwingTable(@"Config/PendulumSwings.xml"); Config.RacingPenguinWaypoints = XmlConfigParser.OpenWaypointTable(@"Config/RacingPenguinWaypoints.xml"); Config.KoopaTheQuick1Waypoints = XmlConfigParser.OpenWaypointTable(@"Config/KoopaTheQuick1Waypoints.xml"); Config.KoopaTheQuick2Waypoints = XmlConfigParser.OpenWaypointTable(@"Config/KoopaTheQuick2Waypoints.xml"); Config.Missions = XmlConfigParser.OpenMissionTable(@"Config/Missions.xml"); Config.CourseData = XmlConfigParser.OpenCourseDataTable(@"Config/CourseData.xml"); Config.FlyGuyData = new FlyGuyDataTable(); loadingForm.UpdateStatus("Finishing", statusNum); }