Cleanup core_frame
This commit is contained in:
parent
a8408d663e
commit
3094e47820
2
core.h
2
core.h
|
@ -170,7 +170,7 @@ bool core_unload_game(void);
|
||||||
|
|
||||||
bool core_reset(void);
|
bool core_reset(void);
|
||||||
|
|
||||||
bool core_frame(retro_ctx_frame_info_t *info);
|
void core_frame(retro_ctx_frame_info_t *info);
|
||||||
|
|
||||||
bool core_poll(void);
|
bool core_poll(void);
|
||||||
|
|
||||||
|
|
|
@ -320,14 +320,13 @@ void core_set_serialization_quirks(uint64_t quirks)
|
||||||
core_serialization_quirks_v = quirks;
|
core_serialization_quirks_v = quirks;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool core_frame(retro_ctx_frame_info_t *info)
|
void core_frame(retro_ctx_frame_info_t *info)
|
||||||
{
|
{
|
||||||
if (!info || !retro_ctx.frame_cb)
|
if (!retro_ctx.frame_cb)
|
||||||
return false;
|
return;
|
||||||
|
|
||||||
retro_ctx.frame_cb(
|
retro_ctx.frame_cb(
|
||||||
info->data, info->width, info->height, info->pitch);
|
info->data, info->width, info->height, info->pitch);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool core_poll(void)
|
bool core_poll(void)
|
||||||
|
|
Loading…
Reference in New Issue