private void btnSave_Click(object sender, EventArgs e) { string drbPath = txtGameDir.Text + DRB_PATH + (remastered ? ".dcx" : ""); if (!File.Exists(drbPath + ".bak")) { File.Copy(drbPath, drbPath + ".bak"); } drb.Write(drbPath); SystemSounds.Asterisk.Play(); }
private void SaveToolStripMenuItem_Click(object sender, EventArgs e) { try { SFUtil.Backup(DrbPath); Drb.Write(DrbPath); SystemSounds.Asterisk.Play(); } catch (Exception ex) { ShowError($"Failed to save DRB:\n{DrbPath}\n\n{ex}"); } }