Pre-load script information, in this case, the filepath to the script, the function name to be executed and an identifier for the script.

int DXScript::preLoadScript(const char *_identifier, const char *_filePath, const char * _functionName)


Type Name Description
const char* _identifier The identifier which will be used to identify the LUA script.
const char* _filePath The filepath to the LUA script, without the file extension.
const char* _functionName The function name to be executed in the specified LUA script.


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


DXScript *dxscr = new DXScript();
dxscr->preLoadScript("test_pre_load", "scripts/callToMainByFunc", "main");

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.