diff --git a/scripts/OlympusCommand.lua b/scripts/OlympusCommand.lua index 6eb4789e..6fa83fa2 100644 --- a/scripts/OlympusCommand.lua +++ b/scripts/OlympusCommand.lua @@ -31,7 +31,7 @@ Olympus.missionStartTime = DCS.getRealTime() Olympus.napalmCounter = 1 Olympus.fireCounter = 1 --- Load the current instance folder +-- Load the lua file system local lfs = require('lfs') ------------------------------------------------------------------------------------------------------ @@ -1367,7 +1367,6 @@ end Olympus.instancePath = lfs.writedir().."Mods\\Services\\Olympus\\bin\\" Olympus.notify("Starting DCS Olympus backend session in "..Olympus.instancePath, 2) - local OlympusName = 'Olympus ' .. version .. ' C++ module'; Olympus.DLLsloaded = Olympus.loadDLLs() if Olympus.DLLsloaded then diff --git a/scripts/OlympusHook.lua b/scripts/OlympusHook.lua index 62f30981..0ab45fb0 100644 --- a/scripts/OlympusHook.lua +++ b/scripts/OlympusHook.lua @@ -14,8 +14,8 @@ function Olympus.loadDLLs() local status log.write('Olympus.HOOKS.LUA', log.INFO, 'Loading olympus.dll from ['..Olympus.OlympusModPath..']') - status, Olympus.OlympusDLL = require("olympus") - if status then + status, Olympus.OlympusDLL = pcall(require, 'olympus') + if status then log.write('Olympus.HOOKS.LUA', log.INFO, 'olympus.dll loaded successfully') return true else