@@ -21,18 +21,22 @@ public class DoomEternal
2121
2222 public static void EnumerateSaves ( ) {
2323 Saves = new DoomEternalSaveCollection ( ) ;
24- foreach ( var single in Directory . GetDirectories ( BnetSavePath , "*.*" , SearchOption . TopDirectoryOnly ) ) {
25- if ( Utilities . CheckUUID ( Path . GetFileNameWithoutExtension ( single ) ) )
26- Saves . Add ( new DoomEternalSave ( Path . GetFileNameWithoutExtension ( single ) , BnetSavePath , DoomEternalSavePlatform . BethesdaNet ) ) ;
24+ if ( Directory . Exists ( BnetSavePath ) ) {
25+ Saves . Add ( new DoomEternalSave ( "savegame.unencrypted" , BnetSavePath , DoomEternalSavePlatform . BethesdaNet ) ) ;
26+ foreach ( var single in Directory . GetDirectories ( BnetSavePath , "*.*" , SearchOption . TopDirectoryOnly ) ) {
27+ if ( Utilities . CheckUUID ( Path . GetFileNameWithoutExtension ( single ) ) )
28+ Saves . Add ( new DoomEternalSave ( Path . GetFileNameWithoutExtension ( single ) , BnetSavePath , DoomEternalSavePlatform . BethesdaNet ) ) ;
29+ }
2730 }
28- foreach ( var steamId3 in Directory . GetDirectories ( SteamSavePath , "*.*" , SearchOption . TopDirectoryOnly ) ) {
29- Console . WriteLine ( Path . GetFileNameWithoutExtension ( steamId3 ) ) ;
30- foreach ( var single in Directory . GetDirectories ( steamId3 , "*.*" , SearchOption . TopDirectoryOnly ) ) {
31- if ( Path . GetFileNameWithoutExtension ( single ) == SteamGameID . ToString ( ) )
32- Saves . Add ( new DoomEternalSave ( ( int . Parse ( Path . GetFileNameWithoutExtension ( steamId3 ) ) + 76561197960265728 ) . ToString ( ) , SteamSavePath , DoomEternalSavePlatform . Steam ) ) ;
31+ if ( Directory . Exists ( SteamSavePath ) ) {
32+ foreach ( var steamId3 in Directory . GetDirectories ( SteamSavePath , "*.*" , SearchOption . TopDirectoryOnly ) ) {
33+ Console . WriteLine ( Path . GetFileNameWithoutExtension ( steamId3 ) ) ;
34+ foreach ( var single in Directory . GetDirectories ( steamId3 , "*.*" , SearchOption . TopDirectoryOnly ) ) {
35+ if ( Path . GetFileNameWithoutExtension ( single ) == SteamGameID . ToString ( ) )
36+ Saves . Add ( new DoomEternalSave ( ( int . Parse ( Path . GetFileNameWithoutExtension ( steamId3 ) ) + 76561197960265728 ) . ToString ( ) , SteamSavePath , DoomEternalSavePlatform . Steam ) ) ;
37+ }
3338 }
3439 }
35- Saves . Add ( new DoomEternalSave ( "savegame.unencrypted" , BnetSavePath , DoomEternalSavePlatform . BethesdaNet ) ) ;
3640 }
3741
3842 #region Bethesda.net
@@ -153,4 +157,4 @@ public static void SteamToBnetTransfer(string fromId, string toId) {
153157 }
154158 #endregion
155159 }
156- }
160+ }
0 commit comments