I added a method to mudlet.cpp and then modified TLuaInterpreter.cpp to add an intermediary method (what I assumed needed to happen to make the method available to lua in mudlet. Wondering if anyone can briefly explain how one would go about adding a C++ method/function and exposing that in lua in mudlet.
Here's what I tried:
In mudlet.cpp:
and the corresponding stub to mudlet.h, of course.
I then modified TLuaInterpreter.cpp to add a method to where I assumed would make the method available in lua:
And finally added the method to be available to lua:
However, when I compile and try to test, it crashes when the method is called.
Edit: I was looking through some Phonon documentation and I couldn't find the clear() method, so I tried stop() instead, both seem to crash.