Make the lua scripts that use config.lua to use the new config function.

This commit is contained in:
Mark Crane
2013-05-02 01:10:45 +00:00
parent c86845fbf2
commit 37f4a88535
14 changed files with 28 additions and 15 deletions

View File

@@ -32,7 +32,8 @@
--include config.lua
scripts_dir = string.sub(debug.getinfo(1).source,2,string.len(debug.getinfo(1).source)-(string.len(argv[0])+1));
dofile(scripts_dir.."/resources/config.lua");
dofile(scripts_dir.."/resources/functions/config.lua");
dofile(config());
--connect to the database
if (file_exists(database_dir.."/core.db") then