private void OpenRbf() { manager = new RbfManager(); romText.Text = ""; rbfText.Text = ""; injectedRBF.Text = ""; toolStripStatusLabel1.Text = ""; String file = ChooseOpenFile("rbf"); if (file == "") { manager = null; return; } if (manager.LoadRbf(file) == true) { romText.Text = "Size : " + manager.getRomLength(); rbfText.Text = "Size : " + manager.getRbfLength(); injectedRBF.Text = "Size : " + manager.getinjectedRbfLength(); toolStripStatusLabel1.Text = "Injected rbf loaded."; } else { rbfText.Text = "Size : " + manager.getRbfLength(); toolStripStatusLabel1.Text = "Regular Rbf loaded."; } }
private void button1_Click(object sender, EventArgs e) { manager = new RbfManager(); if (manager.LoadRbf("E:\\MSVC\\RBfTool\\Pacman2.rbf") == true) { romText.Text = "Size : " + manager.getRomLength(); rbfText.Text = "Size : " + manager.getRbfLength(); } }
void AutoInject() { FolderBrowserDialog fbd = new FolderBrowserDialog(); if (fbd.ShowDialog() == DialogResult.OK) { manager = new RbfManager(); manager.AutoInject(fbd.SelectedPath); } }