mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update Radios.lua
This commit is contained in:
@@ -163,12 +163,18 @@ function RADIOS:NewFromFile(FileName)
|
|||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Backup DCS radio table
|
||||||
|
local radiobak=UTILS.DeepCopy(radio)
|
||||||
|
|
||||||
-- This will create a global table `radio`
|
-- This will create a global table `radio`
|
||||||
dofile(FileName)
|
dofile(FileName)
|
||||||
|
|
||||||
-- Get radios from table.
|
-- Get radios from table.
|
||||||
self=self:NewFromTable(radio)
|
self=self:NewFromTable(radio)
|
||||||
|
|
||||||
|
-- Restore DCS radio table
|
||||||
|
radio=UTILS.DeepCopy(radiobak)
|
||||||
|
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user