finalizeInit
Definition
-- @/lua/ge/extensions/core/settings/settings.lua:455
local function finalizeInit()
-- force application of all settings the first time, since init() has not correctly applied all of them
-- we could make init() call load(), but that would fail because it's still too early, and some stuff is not initialized yet
load(true)
core_settings_graphic.onFirstUpdateSettings()
core_settings_audio.onFirstUpdateSettings()
local techLicense = false
if ResearchVerifier ~= nil then techLicense = ResearchVerifier.isTechLicenseVerified() end
--Could be more optimal to call earlier?
loadPlatformSettings(PlatformSwitches.settingsJsonPath)
initFinalized = true
-- the telemetry extension decides internally if it should be active or not
extensions.load('telemetry_core')
end
Callers
@/lua/ge/main.lua
extensions.hook('onFirstUpdate')
settings.finalizeInit()