File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Source/NETworkManager.Settings Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -178,17 +178,12 @@ public static void Load()
178178 Save ( ) ;
179179
180180 // Create a backup of the legacy XML file and delete the original
181- Directory . CreateDirectory ( GetSettingsBackupFolderLocation ( ) ) ;
182-
183- var backupFilePath = Path . Combine ( GetSettingsBackupFolderLocation ( ) ,
181+ Backup ( legacyFilePath ,
182+ GetSettingsBackupFolderLocation ( ) ,
184183 $ "{ TimestampHelper . GetTimestamp ( ) } _{ GetLegacySettingsFileName ( ) } ") ;
185-
186- File . Copy ( legacyFilePath , backupFilePath , true ) ;
187-
184+
188185 File . Delete ( legacyFilePath ) ;
189186
190- Log . Info ( $ "Legacy XML settings file backed up to: { backupFilePath } ") ;
191-
192187 Log . Info ( "Settings migration from XML to JSON completed successfully." ) ;
193188
194189 return ;
You can’t perform that action at this time.
0 commit comments