How to detect QuitGame events?

Started by RickJ, Mon 20/03/2006 00:44:17

Previous topic - Next topic

RickJ

I would like the module, I am working on, to do some cleanup when the game exits.   The obvious solution is to make a MyModule.QuitGame() that does whatever I want and then calls QuitGame().  That's OK but it leaves open the possibility that a future user of the module may not realize that this is required and just use the built-in function instead, causing the module to potentially misoperate.   

I checked the on_event() documentation and there is not a eEventQuitGame event listed there.  I was wondering if there is perhaps another clever way of doing this from inside a module?   


monkey0506

It's been brought up by more than one member.  Must be time to implement! ;)

SMF spam blocked by CleanTalk