private void revertModifiedImageToolStripMenuItem_Click(object sender, EventArgs e) { PSXImage modifiedImage = _state.ProjectFile.ModifiedImage; modifiedImage.Clear(false); modifiedImage.Rip(_state.ProjectFile.ModifiedImage.RippedDirectory); UpdateTreeNodes(); }
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(); }