move monitor identification above throttle identification

This commit is contained in:
2026-06-25 14:24:56 -05:00
parent d08d662d01
commit 6668a99f28

View File

@@ -564,7 +564,21 @@ function UpdateGlobalThrust()
end
function Init()
-- Initialize monitors - identify which monitor is for which type
if Config.Monitors.InstrumentPanelMonitor == nil then
print("Identifying instrument panel monitor...")
Config.Monitors.InstrumentPanelMonitor = identifyMonitor("instrument panel")
end
if Config.Monitors.AutopilotControlMonitor == nil then
print("Identifying autopilot control monitor...")
Config.Monitors.AutopilotControlMonitor = identifyMonitor("autopilot control")
end
ThrottleInit()
Thrusters = {}
local configFile = io.open(Config.ConfigPath, "r")
@@ -597,17 +611,6 @@ function Init()
end
end
-- Initialize monitors - identify which monitor is for which type
if Config.Monitors.InstrumentPanelMonitor == nil then
print("Identifying instrument panel monitor...")
Config.Monitors.InstrumentPanelMonitor = identifyMonitor("instrument panel")
end
if Config.Monitors.AutopilotControlMonitor == nil then
print("Identifying autopilot control monitor...")
Config.Monitors.AutopilotControlMonitor = identifyMonitor("autopilot control")
end
-- If we're here, the config loaded successfully and the initialization is done.
end