34 lines
769 B
Plaintext
34 lines
769 B
Plaintext
Scriptname _00E_EnderalVersion extends ReferenceAlias Hidden
|
|
{This script handles Enderal SE updates, DO NOT MODIFY.}
|
|
|
|
int iPatchVersion
|
|
|
|
int function _GetScriptVersion() Global
|
|
return 1
|
|
endFunction
|
|
|
|
int function GetVersion() global
|
|
return EnderalFunctions.GetEnderalVersionInt()
|
|
endfunction
|
|
|
|
Event OnInit()
|
|
|
|
iPatchVersion = GetVersion()
|
|
|
|
EndEvent
|
|
|
|
Event OnPlayerLoadGame()
|
|
|
|
if iPatchVersion < 33620992 ; 2.1.4
|
|
Debug.Trace("Updating to v2.1.4 (33620992)...")
|
|
; Synchronize KillMoveConfig with KillMove
|
|
(Game.GetForm(0x49425) as GlobalVariable).SetValue((Game.GetForm(0x100F19) as GlobalVariable).GetValue())
|
|
endif
|
|
|
|
if iPatchVersion < GetVersion()
|
|
Debug.Trace("Setting current version to " + GetVersion())
|
|
iPatchVersion = GetVersion()
|
|
endif
|
|
|
|
EndEvent
|