Skip to content

Commit 3312efb

Browse files
Update AltLauncher.au3
1 parent b0b454e commit 3312efb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AltLauncher.au3

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#AutoIt3Wrapper_Icon=Resources\AltLauncher.ico
33
#AutoIt3Wrapper_Outfile=Build\AltLauncher.exe
44
#AutoIt3Wrapper_UseX64=n
5-
#AutoIt3Wrapper_Res_Fileversion=0.2.0.9
5+
#AutoIt3Wrapper_Res_Fileversion=0.2.0.10
66
#AutoIt3Wrapper_Res_Language=1033
77
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
88
#include <Constants.au3>
@@ -400,7 +400,7 @@ Func Setup()
400400
Case $IDCANCEL
401401
RegDelete("HKCU\Environment", "AltLauncher_UseRecyclingBin")
402402
EndSwitch
403-
Switch MsgBox(4, $Title, "Would you like to be asked which profile you would like to load each time you start a game?" & @CRLF & @CRLF & "Click 'Yes' to use the Recycling Bin." & @CRLF & "Click 'No' to permanently delete erased slots." & @CRLF & "Click 'Cancel' will preserve any erased save slots, restoring them on the next launch.")
403+
Switch MsgBox(4, $Title, "Would you like to be asked which profile you would like to load each time you start a game?")
404404
Case $IDYES
405405
RegWrite("HKCU\Environment", "AltLauncher_UseProfileFile", "REG_SZ", "False")
406406
Case $IDNO
@@ -424,7 +424,7 @@ Func Setup()
424424
RegWrite("HKCU\Environment", "SteamID64", "REG_SZ", InputBox($Title, "Enter your Steam64 ID." & @CRLF & @CRLF & "You can get your Steam64 at https://steamid.io/" & @CRLF))
425425
EndIf
426426
$AutoDetectUbisoftID = _FileListToArray("C:\Program Files (x86)\Ubisoft\Ubisoft Game Launcher\savegames", "*", $FLTA_FOLDERS)
427-
If $AutoDetectUbisoftID[0] = 1 Then
427+
If IsArray($AutoDetectUbisoftID) And $AutoDetectUbisoftID[0] = 1 Then
428428
RegWrite("HKCU\Environment", "UbisoftID", "REG_SZ", $AutoDetectUbisoftID[1])
429429
Else
430430
RegWrite("HKCU\Environment", "UbisoftID", "REG_SZ", InputBox($Title, "Enter your Ubisoft ID." & @CRLF & @CRLF & "Consult the readme.md on how to obtain this." & @CRLF))

0 commit comments

Comments
 (0)