Ejemplo n.º 1
0
        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.";
            }
        }
Ejemplo n.º 2
0
        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();
            }
        }