@@ -12,31 +12,31 @@ public TransferForm() {
12
12
}
13
13
14
14
private void TransferForm_Load ( object sender , EventArgs e ) {
15
- srcUidComboBox . Items . AddRange ( DoomEternal . GetUserIDs ( ) ) ;
16
- if ( srcUidComboBox . Items . Count == 0 ) {
15
+ srcComboBox . Items . AddRange ( DoomEternal . GetUserIDs ( ) ) ;
16
+ if ( srcComboBox . Items . Count == 0 ) {
17
17
DialogResult = DialogResult . Abort ;
18
- } else if ( srcUidComboBox . Items . Count > 0 ) {
19
- srcUidComboBox . SelectedIndex = 0 ;
18
+ } else if ( srcComboBox . Items . Count > 0 ) {
19
+ srcComboBox . SelectedIndex = 0 ;
20
+ }
21
+ if ( Directory . Exists ( Path . Combine ( DoomEternal . SavePath , "savegame.unencrypted" ) ) ) {
22
+ srcComboBox . Items . Add ( "savegame.unencrypted" ) ;
20
23
}
21
24
}
22
25
23
26
private void transferOkBtn_Click ( object sender , EventArgs e ) {
24
27
bool res = true ;
25
- if ( ! Utilities . CheckUUID ( srcUidComboBox . Text ) ) {
28
+ if ( srcComboBox . Text != "savegame.unencrypted" && ! Utilities . CheckUUID ( srcComboBox . Text ) ) {
26
29
res = false ;
27
30
MessageBox . Show ( "Invalid source UUID!" , "Error" , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
28
31
}
29
32
if ( ! Utilities . CheckUUID ( dstUidBox . Text ) ) {
30
33
res = false ;
31
34
MessageBox . Show ( "Invalid destination UUID!" , "Error" , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
32
35
}
33
- if ( ! Directory . Exists ( Path . Combine ( DoomEternal . SavePath , srcUidComboBox . Text ) ) ) {
36
+ if ( ! Directory . Exists ( Path . Combine ( DoomEternal . SavePath , srcComboBox . Text ) ) ) {
34
37
res = false ;
35
- MessageBox . Show ( "Source UUID directory doesn't exist!" , "Error" , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
38
+ MessageBox . Show ( "Source directory doesn't exist!" , "Error" , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
36
39
}
37
- //if (!Directory.Exists(Path.Combine(DoomEternal.SavePath, dstUidBox.Text))) {
38
- // Directory.CreateDirectory(Path.Combine(DoomEternal.SavePath, dstUidBox.Text));
39
- //}
40
40
if ( res ) {
41
41
DialogResult = DialogResult . OK ;
42
42
}
0 commit comments