by skydereign » Tue Jul 03, 2012 7:28 am
Nope, there is no way of tying events to the closing of the game. That'd be a nice feature though. At that point though, you could every so often (perhaps every second) save a temporary file. That way when the window is closed, and you reload the game, it can check for a temporary file and load from that.