private void MainForm_Shown(object sender, EventArgs e) { ObjectDatabase.LoadFallback(); try { ObjectDatabase.Load(); } catch { } if (!Properties.Settings.Default.AutoUpdateODB) { return; } ObjectDatabase.m_WebClient.DownloadProgressChanged += new System.Net.DownloadProgressChangedEventHandler(this.ODBDownloadProgressChanged); //ObjectDatabase.m_WebClient.DownloadFileCompleted += new AsyncCompletedEventHandler(this.ODBDownloadDone); ObjectDatabase.m_WebClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(this.ODBDownloadDone); ObjectDatabase.Update(false); }
public MainForm(string[] args) { InitializeComponent(); Text = Program.AppTitle + " " + Program.AppVersion + " " + Program.AppDate; Program.m_ROMPath = ""; Program.m_LevelEditors = new List <LevelEditorForm>(); btnMore.DropDownItems.Add("Dump Object Info", null, btnDumpObjInfo_Click); slStatusLabel.Text = "Ready"; ObjectDatabase.Initialize(); if (args.Length >= 1) { LoadROM(args[0]); } }
public MainForm(string[] args) { InitializeComponent(); Text = Program.AppTitle + " " + Program.AppVersion; Program.m_ROMPath = ""; Program.m_LevelEditors = new List <LevelEditorForm>(); if (Program.AppVersion.ToLowerInvariant().Contains("private beta")) { btnMore.DropDownItems.Add("Dump object info", null, btnDumpObjInfo_Click); } slStatusLabel.Text = "Ready"; ObjectDatabase.Initialize(); if (args.Length >= 1) { LoadROM(args[0]); } }
private void btnUpdateODB_Click(object sender, EventArgs e) { ObjectDatabase.Update(true); }
public PseudoParameter(ObjectDatabase.ObjectInfo.ParamInfo pinfo, ushort val) { m_ParamInfo = pinfo; m_ParamValue = val; }