move monitor identification above throttle identification
This commit is contained in:
25
main.lua
25
main.lua
@@ -564,7 +564,21 @@ function UpdateGlobalThrust()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Init()
|
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()
|
ThrottleInit()
|
||||||
|
|
||||||
Thrusters = {}
|
Thrusters = {}
|
||||||
|
|
||||||
local configFile = io.open(Config.ConfigPath, "r")
|
local configFile = io.open(Config.ConfigPath, "r")
|
||||||
@@ -597,17 +611,6 @@ function Init()
|
|||||||
end
|
end
|
||||||
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.
|
-- If we're here, the config loaded successfully and the initialization is done.
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user