Skip to content
Snippets Groups Projects
Commit 768558d4 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Don't call env cb if it's NULL

parent 476e4f1e
No related branches found
No related tags found
No related merge requests found
Pipeline #8084 passed
......@@ -272,9 +272,11 @@ retro_set_environment(retro_environment_t cb)
{
env_cb = cb;
retro_set = true;
if (cb) {
cb(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &rpf);
cb(RETRO_ENVIRONMENT_SET_KEYBOARD_CALLBACK, &rkc);
cb(RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME, &no_game);
}
// RETRO_ENVIRONMENT_SET_FRAME_TIME_CALLBACK
// RETRO_ENVIRONMENT_SET_AUDIO_CALLBACK
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment