TickHook: Fix crash when TickHook isn't set.
[gemrb.git] / gemrb / GUIScripts / bg2 / QuitGame.py
blob0c3e95d1e80186420641016cb09724c9300f82c7
1 # -*-python-*-
2 # GemRB - Infinity Engine Emulator
3 # Copyright (C) 2007 The GemRB Project
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 2
8 # of the License, or (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 # QuitGame.py - display EndGame sequence
22 ###################################################
24 import GemRB
26 def OnLoad ():
27 GemRB.HideGUI ()
28 GemRB.QuitGame ()
29 GemRB.SetNextScript("Start")