Move callback init calls to before set_controller_port_device calls.
This commit is contained in:
parent
e42edbf032
commit
f37ed2f7e1
|
@ -253,6 +253,13 @@ bool secondary_core_create(void)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
core_set_default_callbacks(&secondary_callbacks);
|
||||||
|
secondary_core.retro_set_video_refresh(secondary_callbacks.frame_cb);
|
||||||
|
secondary_core.retro_set_audio_sample(secondary_callbacks.sample_cb);
|
||||||
|
secondary_core.retro_set_audio_sample_batch(secondary_callbacks.sample_batch_cb);
|
||||||
|
secondary_core.retro_set_input_state(secondary_callbacks.state_cb);
|
||||||
|
secondary_core.retro_set_input_poll(secondary_callbacks.poll_cb);
|
||||||
|
|
||||||
for (port = 0; port < 16; port++)
|
for (port = 0; port < 16; port++)
|
||||||
{
|
{
|
||||||
device = port_map[port];
|
device = port_map[port];
|
||||||
|
@ -260,13 +267,6 @@ bool secondary_core_create(void)
|
||||||
secondary_core.retro_set_controller_port_device(port, device);
|
secondary_core.retro_set_controller_port_device(port, device);
|
||||||
}
|
}
|
||||||
clear_controller_port_map();
|
clear_controller_port_map();
|
||||||
|
|
||||||
core_set_default_callbacks(&secondary_callbacks);
|
|
||||||
secondary_core.retro_set_video_refresh(secondary_callbacks.frame_cb);
|
|
||||||
secondary_core.retro_set_audio_sample(secondary_callbacks.sample_cb);
|
|
||||||
secondary_core.retro_set_audio_sample_batch(secondary_callbacks.sample_batch_cb);
|
|
||||||
secondary_core.retro_set_input_state(secondary_callbacks.state_cb);
|
|
||||||
secondary_core.retro_set_input_poll(secondary_callbacks.poll_cb);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue