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