mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
Cleanups
This commit is contained in:
parent
c1493eb579
commit
e5059a237a
2
core.h
2
core.h
@ -154,7 +154,7 @@ bool core_load(unsigned poll_type_behavior);
|
||||
|
||||
bool core_unload(void);
|
||||
|
||||
bool core_set_default_callbacks(void *data);
|
||||
bool core_set_default_callbacks(struct retro_callbacks *cbs);
|
||||
|
||||
bool core_set_rewind_callbacks(void);
|
||||
|
||||
|
11
core_impl.c
11
core_impl.c
@ -117,13 +117,8 @@ static bool core_init_libretro_cbs(struct retro_callbacks *cbs)
|
||||
*
|
||||
* Binds the libretro callbacks to default callback functions.
|
||||
**/
|
||||
bool core_set_default_callbacks(void *data)
|
||||
bool core_set_default_callbacks(struct retro_callbacks *cbs)
|
||||
{
|
||||
struct retro_callbacks *cbs = (struct retro_callbacks*)data;
|
||||
|
||||
if (!cbs)
|
||||
return false;
|
||||
|
||||
cbs->frame_cb = video_driver_frame;
|
||||
cbs->sample_cb = audio_driver_sample;
|
||||
cbs->sample_batch_cb = audio_driver_sample_batch;
|
||||
@ -254,9 +249,7 @@ void core_uninit_symbols(void)
|
||||
|
||||
bool core_init_symbols(enum rarch_core_type *type)
|
||||
{
|
||||
if (!type)
|
||||
return false;
|
||||
if (!init_libretro_sym(*type, ¤t_core))
|
||||
if (!type || !init_libretro_sym(*type, ¤t_core))
|
||||
return false;
|
||||
|
||||
if (!current_core.retro_run)
|
||||
|
Loading…
x
Reference in New Issue
Block a user