Added dependeny on config file in install

This commit is contained in:
Jeremy Smitherman 2018-12-24 16:08:51 -06:00
parent 346fcff330
commit c24de38b21
3 changed files with 15 additions and 6 deletions

View File

@ -1,5 +1,6 @@
HOGGIT = {}
dofile(lfs.writedir()..[[Scripts\HOGGIT\lib\error_handling.lua]])
dofile(lfs.writedir()..[[Scripts\HOGGIT\lib\logging.lua]])
dofile(lfs.writedir()..[[Scripts\HOGGIT\lib\utils.lua]])
dofile(lfs.writedir()..[[Scripts\HOGGIT\lib\spawner.lua]])
trigger.action.outText(HOGGIT.script_base, 25)
trigger.action.outText(HOGGIT.log_base, 25)
dofile(HOGGIT.script_base..[[\HOGGIT\lib\error_handling.lua]])
dofile(HOGGIT.script_base..[[\HOGGIT\lib\logging.lua]])
dofile(HOGGIT.script_base..[[\HOGGIT\lib\utils.lua]])
dofile(HOGGIT.script_base..[[\HOGGIT\lib\spawner.lua]])

View File

@ -0,0 +1,8 @@
-- Copy this file to your GAME INSTALL'S Scripts folder (probably in C:\Program Files\Eagle Dynamics\DCS World\Scripts)
-- NOT your Saved Games Scripts folder.
-- Hoggit Framework Config.
-- Replace these values with the Scripts and Logs folders in your SAVED GAMES' Scripts
-- folder (NOT your base install folder), with NO trailing slash.
script_base = [[D:\Personal Folders\Saved Games\DCS.openbeta\Scripts]]
log_base = [[D:\Personal Folders\Saved Games\DCS.openbeta\Logs]]

View File

@ -1,4 +1,4 @@
logFile = io.open(lfs.writedir()..[[Logs\HOGGIT.log]], "w")
logFile = io.open(HOGGIT.log_base..[[\HOGGIT.log]], "w")
function log(str)
if str == nil then str = 'nil' end