-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for savegame.unencrypted to importing and exporting bac…
…kups
- Loading branch information
John
committed
Mar 23, 2020
1 parent
f518559
commit 3f3d0ec
Showing
9 changed files
with
154 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System; | ||
using System.Windows.Forms; | ||
|
||
using System.IO; | ||
|
||
namespace DOOMSaveManager | ||
{ | ||
public partial class SelectForm : Form | ||
{ | ||
public SelectForm(string title = "") { | ||
InitializeComponent(); | ||
if(!String.IsNullOrEmpty(title)) | ||
this.Text = title; | ||
} | ||
|
||
private void SelectForm_Load(object sender, EventArgs e) { | ||
selectComboBox.Items.AddRange(DoomEternal.GetUserIDs()); | ||
if (selectComboBox.Items.Count > 0) { | ||
selectComboBox.SelectedIndex = 0; | ||
} | ||
if (Directory.Exists(Path.Combine(DoomEternal.SavePath, "savegame.unencrypted"))) { | ||
selectComboBox.Items.Add("savegame.unencrypted"); | ||
} | ||
} | ||
|
||
private void selectOkBtn_Click(object sender, EventArgs e) { | ||
bool res = true; | ||
if(String.IsNullOrEmpty(selectComboBox.Text)) { | ||
res = false; | ||
MessageBox.Show("No item has been selected!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); | ||
} | ||
if(res) { | ||
DialogResult = DialogResult.OK; | ||
} | ||
} | ||
|
||
private void selectCancelBtn_Click(object sender, EventArgs e) { | ||
DialogResult = DialogResult.Cancel; | ||
} | ||
} | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters