Make HOOK_ON_EXIT also call on lobby exit
This commit is contained in:
parent
b8c42f308f
commit
afb2a09db5
|
@ -621,6 +621,8 @@ void network_update(void) {
|
|||
}
|
||||
|
||||
void network_shutdown(bool sendLeaving, bool exiting, bool popup, bool reconnecting) {
|
||||
smlua_call_event_hooks(HOOK_ON_EXIT);
|
||||
|
||||
if (gDjuiChatBox != NULL) {
|
||||
djui_base_destroy(&gDjuiChatBox->base);
|
||||
gDjuiChatBox = NULL;
|
||||
|
|
|
@ -284,10 +284,7 @@ void audio_shutdown(void) {
|
|||
}
|
||||
|
||||
void game_deinit(void) {
|
||||
if (gGameInited) {
|
||||
smlua_call_event_hooks(HOOK_ON_EXIT);
|
||||
configfile_save(configfile_name());
|
||||
}
|
||||
if (gGameInited) { configfile_save(configfile_name()); }
|
||||
controller_shutdown();
|
||||
audio_custom_shutdown();
|
||||
audio_shutdown();
|
||||
|
|
Loading…
Reference in New Issue