4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
753 B

Scriptname _00E_EnderalVersion extends ReferenceAlias Hidden
{This script handles Enderal SE updates, DO NOT MODIFY.}
int iPatchVersion
; Do not make comparisons with GetVersionFull(), versions are not float numbers, use GetVersion().
float function _GetVersionFull() global
; ABCD.E
; A - engine version (1 - LE, 2 - SE)
; B - backward-incompatible update
; C - backward-compatible update
; D - hotfix
; E - build
return 2100.0
endfunction
int function GetVersion() global
return Math.Floor(_GetVersionFull())
endfunction
Event OnInit()
iPatchVersion = GetVersion()
EndEvent
Event OnPlayerLoadGame()
if iPatchVersion < GetVersion()
;Utility.Wait(0.1) ; wait for menu mode to end
;
iPatchVersion = GetVersion()
endif
EndEvent