mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 05:25:14 +00:00
Make HOOK_ON_EXIT also call on lobby exit
This commit is contained in:
parent
b8c42f308f
commit
afb2a09db5
2 changed files with 3 additions and 4 deletions
|
@ -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 a new issue