HolyLib Wiki

HolyLib:OnLuaRunString

 boolean or string HolyLib:OnLuaRunString( string code, string filePath, string gamePath )

Description

Called when Lua code is about to be loaded and executed.
This allows you to modify the code that will be executed,
for example you can change the code and then return the new code which will be used instead.
If you return a bool, then false means the code failed to be executed, and true means the code was executed.
This is useful when you handle execution yourself - though if you want to let code silently fail just return true without executing code.

Recently Added

This was recently added in version (0.8 - DEV).

Arguments

1string code
2string filePath
3string gamePath

Returns

1boolean or string executed/code