Unverified Commit f5502033 authored by bobparadiso's avatar bobparadiso Committed by GitHub
Browse files

-applied workaround for audio crash on core unload mentioned here: (#162)

https://github.com/libretro/RetroArch/issues/7647
parent 2a8f3be5
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment