mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Call `LUAh_GameQuit` in 2 places.
This commit is contained in:
parent
0ecc7b4842
commit
917ba7e505
2 changed files with 8 additions and 0 deletions
|
|
@ -171,6 +171,7 @@ static char returnWadPath[256];
|
|||
#include "../d_net.h"
|
||||
#include "../g_game.h"
|
||||
#include "../filesrch.h"
|
||||
#include "../lua_hook.h"
|
||||
#include "endtxt.h"
|
||||
#include "sdlmain.h"
|
||||
|
||||
|
|
@ -303,6 +304,9 @@ FUNCNORETURN static ATTRNORETURN void signal_handler(INT32 num)
|
|||
|
||||
FUNCNORETURN static ATTRNORETURN void quit_handler(int num)
|
||||
{
|
||||
#ifdef HAVE_BLUA
|
||||
LUAh_GameQuit();
|
||||
#endif
|
||||
signal(num, SIG_DFL); //default signal action
|
||||
raise(num);
|
||||
I_Quit();
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@
|
|||
#include "../console.h"
|
||||
#include "../command.h"
|
||||
#include "../r_main.h"
|
||||
#include "../lua_hook.h"
|
||||
#include "sdlmain.h"
|
||||
#ifdef HWRENDER
|
||||
#include "../hardware/hw_main.h"
|
||||
|
|
@ -1059,6 +1060,9 @@ void I_GetEvent(void)
|
|||
M_SetupJoystickMenu(0);
|
||||
break;
|
||||
case SDL_QUIT:
|
||||
#ifdef HAVE_BLUA
|
||||
LUAh_GameQuit();
|
||||
#endif
|
||||
I_Quit();
|
||||
M_QuitResponse('y');
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue