You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'If the game is not running and "Let GHOST Buster disable cloud save synchronization" is checked
305
-
'Check if Uplay is running or not before editing its settings file
306
-
DimUplayProc=Process.GetProcessesByName("upc")
307
-
IfUplayProc.Count>0Then
308
-
CustomMsgBox.Show("{\rtf1 You must {\b quit Uplay before restoring a backup} because you chose to let GHOST Buster disable cloud save synchronization for you.}","Cannot restore",MessageBoxButtons.OKCancel,MessageBoxIcon.Warning)
309
-
Else
310
-
'Disable Uplay cloud save synchronization
311
-
Try
312
-
DimUplayYAMLPathAsString=Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)&"\Ubisoft Game Launcher\settings.yml"
313
-
Logger.Log("[INFO] Parsing and evaluating Uplay settings file: "&UplayYAMLPath)
'Don't replace anything if syncsavegames is already set to false
335
-
Logger.Log("[INFO] Uplay cloud synchronization is already disabled.")
336
-
337
-
'Launch Uplay again...
338
-
IfUplayPath<>NothingThen
339
-
Process.Start(UplayPath&"Uplay.exe")
340
-
EndIf
341
-
342
-
'...and restore the backup
343
-
RestoreBackup()
344
-
EndIf
345
-
346
-
CatchexAsException
347
-
'Don't let GHOST Buster disable cloud save sync until the user enables the setting again...
348
-
DisableCloudSyncChkBox.Checked=False
349
-
'...notify the user about the error
350
-
Logger.Log("[ERROR] Parsing of ""settings.yml"" failed: "&ex.Message())
351
-
CustomMsgBox.Show("{\rtf1 ""Let GHOST Buster disable cloud save synchronization"" setting has been {\b disabled because an error occurred} while trying to parse Uplay settings file."_
352
-
&"\line\line Make sure to {\b DISABLE} cloud save synchronization from Uplay (Settings -> Untick ""Enable cloud save synchronization for supported games"") before launching Wildlands, otherwise the restored save games will be "_
353
-
&"{\b OVERWRITTEN} with the old ones from the cloud!",
'Check if Uplay is running or not before editing its settings file
35
+
DimUplayProc=Process.GetProcessesByName("upc")
36
+
IfUplayProc.Count>0Then
37
+
CustomMsgBox.Show("{\rtf1 You must {\b quit Uplay before restoring a backup} because you chose to let GHOST Buster disable cloud save synchronization for you.}","Cannot restore",MessageBoxButtons.OKCancel,MessageBoxIcon.Warning)
38
+
Else
39
+
'Backup Uplay settings file without overwriting an existing backup
40
+
Logger.Log("[INFO] Backing up Uplay settings file to "&UplayYamlPath&".bak")
Logger.Log("[INFO] Uplay cloud save synchronization disabled.")
47
+
48
+
'Launch Uplay again...
49
+
IfUplayPath<>NothingThen
50
+
Process.Start(UplayPath&"Uplay.exe")
51
+
EndIf
52
+
53
+
'...and start the restore process
54
+
RestoreBackup()
55
+
EndIf
56
+
Else
57
+
'Don't replace anything
58
+
Logger.Log("[INFO] Uplay cloud synchronization is already disabled.")
59
+
60
+
'Start the restore process
61
+
RestoreBackup()
62
+
EndIf
63
+
64
+
CatchexAsException
65
+
'Don't let GHOST Buster disable cloud save sync until the user enables the setting again
66
+
Form1.DisableCloudSyncChkBox.Checked=False
67
+
68
+
Logger.Log("[ERROR] Parsing of ""settings.yml"" failed: "&ex.Message())
69
+
CustomMsgBox.Show("{\rtf1 ""Let GHOST Buster disable cloud save synchronization"" setting has been {\b disabled because an error occurred} while trying to parse Uplay settings file."_
70
+
&"\line\line Make sure to {\b DISABLE} cloud save synchronization from Uplay (Settings -> Untick ""Enable cloud save synchronization for supported games"") before launching Wildlands, otherwise the restored save games will be "_
71
+
&"{\b OVERWRITTEN} with the old ones from the cloud!",
0 commit comments