I wonder if anyone can help, and if I’m asking in the wrong place, firstly my apologies, and secondly, please let me know where I should be asking.
The situation I have is that Lua is being used to provide a scripting interface to a larger app. The Lua interpreter is embedded in the application, and loads lua files at startup.
I’d like to be able to ask the application to reload a particular (or all) files.
I suspect that I’m looking in all the wrong places, but is there a lua function to “reload myself”?
I’d then do something like:
If (newer_version_of_file_exists) ; then
Reload_self
End
When a certain trigger was passed to the (Lua) program.
This would be very useful as the app takes a while (up to an hour) to startup.
Thanks
Graham Nicholls