Require explicit acceptance in the existing game dialog and retain the accepted version in the local account profile. Verified full Quirrel compilation for .37 and .43, a temporary .43 build, and the launcher checks.
17 lines
358 B
Plaintext
17 lines
358 B
Plaintext
local eulaVersion = -1
|
|
|
|
let localAgreedEulaVersion = hardPersistWatched("localAgreedEulaVersion", 0)
|
|
|
|
let shortLangToEulaLang = {
|
|
en = ""
|
|
cs = "cz"
|
|
ja = "jp"
|
|
zhhx = "zh"
|
|
}
|
|
|
|
function getEulaVersion() {
|
|
if (eulaVersion == -1)
|
|
eulaVersion = to_integer_safe(getCurCircuitOverride("eulaVersion") ?? loc("eula_version", "12"))
|
|
return eulaVersion
|
|
}
|