DXScript::runScriptFromMain

Description
Runs the specified LUA script from its main function, if possible. int DXScript::runScriptFromMain(std::string _filePath)

Parameters


Returns
Zero for success, nonzero for failure. For more detail of a failure, this function returns a member of the eScriptReturns enumeration.

Example
DXScript *dxscr = new DXScript; dxscr->runScriptFromMain("scripts/callC");