Skip to content

Commit

Permalink
-applied workaround for audio crash on core unload mentioned here: (#162
Browse files Browse the repository at this point in the history
  • Loading branch information
bobparadiso committed Feb 19, 2021
1 parent 2a8f3be commit f550203
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libretro.c
Expand Up @@ -232,6 +232,9 @@ bool retro_load_game(const struct retro_game_info *info)

void retro_unload_game(void)
{
// Workaround a crash on Windows & Android because the callbacks are invoked after the DLL/SO was unloaded
struct retro_audio_callback no_audio_callback_definition = { NULL, NULL };
environ_cb(RETRO_ENVIRONMENT_SET_AUDIO_CALLBACK, &no_audio_callback_definition);
}

void lutro_shutdown_game(void)
Expand Down

0 comments on commit f550203

Please sign in to comment.