Skip to content

Commit

Permalink
Allow any extension, only treat loading and exe differently
Browse files Browse the repository at this point in the history
  • Loading branch information
diekleinekuh committed Oct 14, 2024
1 parent 280684f commit 527c1a6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions libretro/libretro.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static void run_bennugd(void)

if (extension)
{
if (0==strcasecmp(extension, ".dat"))
if (strcasecmp(extension, ".exe"))
{
arg1 = arg0;
arg0="bgdi";
Expand Down Expand Up @@ -345,10 +345,13 @@ void retro_init(void)
audio_mixbuf = malloc(audio_mixbuf_frames*audio_frame_size);
sdl_libretro_init_audio();

environ_cb(RETRO_ENVIRONMENT_SET_AUDIO_CALLBACK, &(struct retro_audio_callback){
if (!environ_cb(RETRO_ENVIRONMENT_SET_AUDIO_CALLBACK, &(struct retro_audio_callback){
&retro_audio_callback,
&retro_audio_set_state_callback
} );
} ))
{
log_cb(RETRO_LOG_WARN, "RETRO_ENVIRONMENT_SET_AUDIO_CALLBACK failed");
}

if (!main_thread)
{
Expand Down

0 comments on commit 527c1a6

Please sign in to comment.