Exemplo n.º 1
0
        private void revertModifiedImageToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PSXImage modifiedImage = _state.ProjectFile.ModifiedImage;

            modifiedImage.Clear(false);
            modifiedImage.Rip(_state.ProjectFile.ModifiedImage.RippedDirectory);
            UpdateTreeNodes();
        }
Exemplo n.º 2
0
        private void revertToOriginalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PSXImage modifiedImage = _state.ProjectFile.ModifiedImage;
            PSXImage originalImage = _state.ProjectFile.OriginalImage;

            File.Copy(originalImage.ImageBinPath, modifiedImage.ImageBinPath, true);
            modifiedImage.Clear(false);
            modifiedImage.Rip(modifiedImage.RippedDirectory);
            UpdateTreeNodes();

            //Decompress Scripts (throw away instance)
            new ScriptEditorWindow().DecompressScripts();
        }