@ -1,17 +1,17 @@
; /* ------------------------------------------------------------ */
; /* ------------------------------------------------------------ */
; Script Name : Resistance Saga FYP Launcher
; Script Name : Resistance Saga FYP Launcher
; Version : 1.1.0.1006
; Version : 1.1.0.1008
; Author : Yandols Z'eon X
; Author : Yandols Z'eon X
; Supported Platforms : 64-bit Windows platforms.
; Supported Platforms : 64-bit Windows platforms.
; /* ------------------------------------------------------------ */
; /* ------------------------------------------------------------ */
#SingleInstance Forc e ; REMEMBER TO CHANGE TO IGNORE BEFORE COMPILING FOR RELEASE
#SingleInstance Ignor e ; REMEMBER TO CHANGE TO IGNORE BEFORE COMPILING FOR RELEASE
#NoEnv
#NoEnv
#NoTrayIcon
#NoTrayIcon
;#Warn ; DEBUG ONLY. REMEMBER TO REMOVE/COMMENT OUT THIS LINE BEFORE COMPILING FOR RELEASE
;#Warn ; DEBUG ONLY. REMEMBER TO REMOVE/COMMENT OUT THIS LINE BEFORE COMPILING FOR RELEASE
SendMode Input
SendMode Input
SetWorkingDir %A_ScriptDir%
SetWorkingDir %A_ScriptDir%
AppName=Resistance Saga Launcher
AppName=Resistance Saga Launcher
AppVer=1.1.0.1006
AppVer=1.1.0.1008
AppAuthor=YandolsZX
AppAuthor=YandolsZX
AppTitle=%AppName% (Version %AppVer%)
AppTitle=%AppName% (Version %AppVer%)
AppDataFolder=%A_AppData%\Locaria Technologies\RSF
AppDataFolder=%A_AppData%\Locaria Technologies\RSF
@ -33,16 +33,11 @@ Gui, Show, w680 h350, %AppName%
SetTimer, CheckUpdates, 300
SetTimer, CheckUpdates, 300
GuiControl, Disable, BtnStart
GuiControl, Disable, BtnStart
;GuiControl,, BtnStart, Checking for Updates...
;sleep 3000
;GuiControl,, BtnStart, &Start Game
;GuiControl, Enable, BtnStart
;GuiControl, Focus, BtnStart
Return
Return
BtnStart:
BtnStart:
Gui, Submit
Gui, Submit
RunWait, win64\rsaga.exe,, UseErrorLevel
RunWait, win64\rsaga.exe --disable-devtools,, UseErrorLevel
If ErrorLevel
If ErrorLevel
{
{
Msgbox, 16, %AppName%, Failed to start the game. Please make sure the game is up to date and you have DirectX 10 installed. `n`nIf you think your installation is corrupted, use the 'Redownload Game Data' option in settings.
Msgbox, 16, %AppName%, Failed to start the game. Please make sure the game is up to date and you have DirectX 10 installed. `n`nIf you think your installation is corrupted, use the 'Redownload Game Data' option in settings.
@ -144,6 +139,8 @@ UrlDownloadToFile, https://kin.yandols.xyz/rs-fyp.ini, %A_Temp%/csu-resistancesa
If ErrorLevel
If ErrorLevel
{
{
SB_SetText(" Unable to connect to patch server.", 1)
SB_SetText(" Unable to connect to patch server.", 1)
GuiControl, Enable, BtnStart
GuiControl, Focus, BtnStart
return
return
}
}
;; Read Remote Config
;; Read Remote Config