@@ -40,28 +40,14 @@ private void transferOkBtn_Click(object sender, EventArgs e) {
4040 return ;
4141 }
4242
43- if ( SrcSave . Platform == DoomEternalSavePlatform . BethesdaNet ) {
44- if ( ! Directory . Exists ( Path . Combine ( DoomEternal . BnetSavePath , SrcSave . Identifier ) ) && ! Directory . Exists ( Path . Combine ( DoomEternal . BnetSavePathUnencrypted , SrcSave . Identifier ) ) ) {
45- MessageBox . Show ( "Source directory doesn't exist!" , "Error" , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
46- return ;
47- }
48- } else if ( SrcSave . Platform == DoomEternalSavePlatform . Steam ) {
49- if ( ! Directory . Exists ( Utilities . GetSavePathForId64 ( ulong . Parse ( SrcSave . Identifier ) ) ) ) {
50- MessageBox . Show ( "Source directory doesn't exist!" , "Error" , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
51- return ;
52- }
43+ if ( ! SrcSave . Exists ( ) ) {
44+ MessageBox . Show ( "Source directory doesn't exist!" , "Error" , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
45+ return ;
5346 }
5447
55- if ( DstSave . Platform == DoomEternalSavePlatform . BethesdaNet ) {
56- if ( ! Directory . Exists ( Path . Combine ( DoomEternal . BnetSavePath , DstSave . Identifier ) ) && ! Directory . Exists ( Path . Combine ( DoomEternal . BnetSavePathUnencrypted , DstSave . Identifier ) ) ) {
57- MessageBox . Show ( "Destination directory doesn't exist!" , "Error" , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
58- return ;
59- }
60- } else if ( DstSave . Platform == DoomEternalSavePlatform . Steam ) {
61- if ( ! Directory . Exists ( Utilities . GetSavePathForId64 ( ulong . Parse ( DstSave . Identifier ) ) ) ) {
62- MessageBox . Show ( "Destination directory doesn't exist!" , "Error" , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
63- return ;
64- }
48+ if ( ! DstSave . Exists ( ) ) {
49+ MessageBox . Show ( "Destination directory doesn't exist!" , "Error" , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
50+ return ;
6551 }
6652
6753 DialogResult = DialogResult . OK ;
0 commit comments