BluFinBima Posted June 25, 2019 Posted June 25, 2019 Hi, Hope someone can point me in the right direction. I've dumped _G without any obvious candidates. I'm trying to find out if VR is enabled from within DCS so that I can automatically disable my FTNoIR module. It's obviously defined in options.lua, but I don't know how to expose it. Thanks in advance. BlueFinBima Latest Helios Virtual Cockpit Team version of Helios can be found on Github BlueFinBima Helios YouTube
BluFinBima Posted June 26, 2019 Author Posted June 26, 2019 I was hoping to avoid running the options.lua, so still hoping someone will come up with a better answer, but I've temporarily gone for log.write('USERMOD',log.INFO," Loading options from - " .. lfs.writedir() .. "config\\options.lua") dofile(lfs.writedir() .. "config\\options.lua") gDCS_VR = options.VR.enable log.write('USERMOD',log.INFO," VR option = " .. tostring(options.VR.enable)) BlueFinBima Latest Helios Virtual Cockpit Team version of Helios can be found on Github BlueFinBima Helios YouTube
Recommended Posts