Skip to content

Commit

Permalink
v1.2.0 hotfix1
Browse files Browse the repository at this point in the history
- fixed launcher not starting due to some variables being declared inside a function
  • Loading branch information
alex47exe committed Apr 25, 2019
1 parent 6adc6d3 commit db69593
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions _Prince of Persia The Two Thrones.au3
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ Switch $ini_Savegame_dir
$Savegame_dir = @ScriptDir & "\" & $ini_Savegame_subdir
EndSwitch

$HUD_Fix_CanStretchRect = IniRead($ini, "fix", "CanStretchRect", 0)
$Fog_Fix_ForceVSFog = IniRead($ini, "fix", "ForceVSFog", 1)
$Fog_Fix_InvertFogRange = IniRead($ini, "fix", "InvertFogRange", 0)

$Ini2 = @ScriptDir & "\pop3.ini"

If IniRead(@AppDataCommonDir & "\SalFisher47\UniGame Launcher\" & StringTrimRight(@ScriptName, 4) & ".ini", "launcher", "game_path", "") <> @ScriptDir Then
$first_launch = 1
IniWrite(@AppDataCommonDir & "\SalFisher47\UniGame Launcher\" & StringTrimRight(@ScriptName, 4) & ".ini", "launcher", "game_path", " " & @ScriptDir)
Expand Down Expand Up @@ -131,12 +137,6 @@ _RunMain()

Func _RunBefore_EveryLaunch()

$HUD_Fix_CanStretchRect = IniRead($ini, "fix", "CanStretchRect", 0)
$Fog_Fix_ForceVSFog = IniRead($ini, "fix", "ForceVSFog", 1)
$Fog_Fix_InvertFogRange = IniRead($ini, "fix", "InvertFogRange", 0)

$Ini2 = @ScriptDir & "\pop3.ini"

$desktop_width = IniRead($Ini, "Exe", "desktop_width", 0)
$desktop_height = IniRead($Ini, "Exe", "desktop_height", 0)
$desktopRatio = Round($desktop_width/$desktop_height, 2)
Expand Down Expand Up @@ -188,7 +188,7 @@ If IniRead(@ScriptDir & "\Hardware.ini", "CAPS", "InvertFogRange", "") <> $Fog_F
FileMove(@ScriptDir & "\POP3.exe", @ScriptDir & "\blank.exe", 1)
FileMove(@ScriptDir & "\POP3_.exe", @ScriptDir & "\POP3.exe", 1)

EndIf
EndFunc

Func _RunMain() ; main script
RegRead('HKCU\Software\Valve\Steam', 'SteamPath')
Expand Down
Binary file modified _Prince of Persia The Two Thrones.exe
Binary file not shown.

0 comments on commit db69593

Please sign in to comment.