http://www.oxeyegames.com/wiki/index.php?title=GameClose&feed=atom&action=historyGameClose - Revision history2024-03-29T12:44:11ZRevision history for this page on the wikiMediaWiki 1.16.0http://www.oxeyegames.com/wiki/index.php?title=GameClose&diff=362&oldid=prevThewreck: Created page with '{{EngineHook| gameClose | This hook is called when the game is closed, either by Alt+f4 (Windows), Cmd+Q (Mac), or by the function daisy.exitGame | {{NoParams}} }} === Exampl...'2010-01-19T12:54:12Z<p>Created page with '{{EngineHook| gameClose | This hook is called when the game is closed, either by Alt+f4 (Windows), Cmd+Q (Mac), or by the function daisy.<a href="/wiki/index.php/ExitGame" title="ExitGame">exitGame</a> | {{NoParams}} }} === Exampl...'</p>
<p><b>New page</b></p><div>{{EngineHook|<br />
gameClose<br />
|<br />
This hook is called when the game is closed, either by Alt+f4 (Windows), Cmd+Q (Mac), or by the function daisy.[[exitGame]]<br />
|<br />
{{NoParams}}<br />
}}<br />
=== Example ===<br />
<pre><br />
local function myGameIsClosing()<br />
--do some cleanup<br />
end<br />
<br />
hook.add("gameClose", myGameIsClosing)<br />
</pre></div>Thewreck