Moved Lua API registering into a separate function.
This will allow us to use Lua as lite-config files as well, should we want to.
This commit is contained in:
@@ -127,6 +127,7 @@ bool cWebAdmin::Start(void)
|
||||
|
||||
// Initialize the WebAdmin template script and load the file
|
||||
m_TemplateScript.Create();
|
||||
m_TemplateScript.RegisterAPILibs();
|
||||
if (!m_TemplateScript.LoadFile(FILE_IO_PREFIX "webadmin/template.lua"))
|
||||
{
|
||||
LOGWARN("Could not load WebAdmin template \"%s\", using default template.", FILE_IO_PREFIX "webadmin/template.lua");
|
||||
|
||||
Reference in New Issue
Block a user