Return failure on set_audio_callback without threads

Current code returns success even though it's actually a failure
This commit is contained in:
Vladimir Serbinenko 2020-03-07 18:50:10 +01:00
parent 8b43e1b4ef
commit 000eaf712a

View File

@ -11568,9 +11568,10 @@ static bool rarch_environment_cb(unsigned cmd, void *data)
return false; return false;
if (cb) if (cb)
audio_callback = *cb; audio_callback = *cb;
return true;
} }
#endif #endif
break; return false;
case RETRO_ENVIRONMENT_SET_FRAME_TIME_CALLBACK: case RETRO_ENVIRONMENT_SET_FRAME_TIME_CALLBACK:
{ {