Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: RickJ on Mon 20/03/2006 00:44:17

Title: How to detect QuitGame events?
Post by: RickJ on Mon 20/03/2006 00:44:17
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?   
Title: Re: How to detect QuitGame events?
Post by: Gilbert on Mon 20/03/2006 02:03:05
http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=552
Title: Re: How to detect QuitGame events?
Post by: monkey0506 on Mon 20/03/2006 03:14:54
It's been brought up by more than one member.  Must be time to implement! ;)