Undone wrong change in pcall

This commit is contained in:
Pax1601 2023-12-06 13:08:52 +01:00
parent fa0643987b
commit 344413ae74
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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