Only read system info for disk core options
This commit is contained in:
parent
f2c022cd54
commit
d66c23f3f3
18
command.c
18
command.c
|
@ -1767,9 +1767,6 @@ bool command_event(enum event_command cmd, void *data)
|
||||||
unsigned i = 0;
|
unsigned i = 0;
|
||||||
bool boolean = false;
|
bool boolean = false;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
rarch_system_info_t *info = NULL;
|
|
||||||
|
|
||||||
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &info);
|
|
||||||
|
|
||||||
(void)i;
|
(void)i;
|
||||||
|
|
||||||
|
@ -2420,6 +2417,10 @@ bool command_event(enum event_command cmd, void *data)
|
||||||
return command_event_disk_control_append_image(path);
|
return command_event_disk_control_append_image(path);
|
||||||
}
|
}
|
||||||
case CMD_EVENT_DISK_EJECT_TOGGLE:
|
case CMD_EVENT_DISK_EJECT_TOGGLE:
|
||||||
|
{
|
||||||
|
rarch_system_info_t *info = NULL;
|
||||||
|
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &info);
|
||||||
|
|
||||||
if (info && info->disk_control_cb.get_num_images)
|
if (info && info->disk_control_cb.get_num_images)
|
||||||
{
|
{
|
||||||
const struct retro_disk_control_callback *control =
|
const struct retro_disk_control_callback *control =
|
||||||
|
@ -2436,8 +2437,13 @@ bool command_event(enum event_command cmd, void *data)
|
||||||
runloop_msg_queue_push(
|
runloop_msg_queue_push(
|
||||||
msg_hash_to_str(MSG_CORE_DOES_NOT_SUPPORT_DISK_OPTIONS),
|
msg_hash_to_str(MSG_CORE_DOES_NOT_SUPPORT_DISK_OPTIONS),
|
||||||
1, 120, true);
|
1, 120, true);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case CMD_EVENT_DISK_NEXT:
|
case CMD_EVENT_DISK_NEXT:
|
||||||
|
{
|
||||||
|
rarch_system_info_t *info = NULL;
|
||||||
|
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &info);
|
||||||
|
|
||||||
if (info && info->disk_control_cb.get_num_images)
|
if (info && info->disk_control_cb.get_num_images)
|
||||||
{
|
{
|
||||||
const struct retro_disk_control_callback *control =
|
const struct retro_disk_control_callback *control =
|
||||||
|
@ -2456,8 +2462,13 @@ bool command_event(enum event_command cmd, void *data)
|
||||||
runloop_msg_queue_push(
|
runloop_msg_queue_push(
|
||||||
msg_hash_to_str(MSG_CORE_DOES_NOT_SUPPORT_DISK_OPTIONS),
|
msg_hash_to_str(MSG_CORE_DOES_NOT_SUPPORT_DISK_OPTIONS),
|
||||||
1, 120, true);
|
1, 120, true);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case CMD_EVENT_DISK_PREV:
|
case CMD_EVENT_DISK_PREV:
|
||||||
|
{
|
||||||
|
rarch_system_info_t *info = NULL;
|
||||||
|
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &info);
|
||||||
|
|
||||||
if (info && info->disk_control_cb.get_num_images)
|
if (info && info->disk_control_cb.get_num_images)
|
||||||
{
|
{
|
||||||
const struct retro_disk_control_callback *control =
|
const struct retro_disk_control_callback *control =
|
||||||
|
@ -2476,6 +2487,7 @@ bool command_event(enum event_command cmd, void *data)
|
||||||
runloop_msg_queue_push(
|
runloop_msg_queue_push(
|
||||||
msg_hash_to_str(MSG_CORE_DOES_NOT_SUPPORT_DISK_OPTIONS),
|
msg_hash_to_str(MSG_CORE_DOES_NOT_SUPPORT_DISK_OPTIONS),
|
||||||
1, 120, true);
|
1, 120, true);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case CMD_EVENT_RUMBLE_STOP:
|
case CMD_EVENT_RUMBLE_STOP:
|
||||||
for (i = 0; i < MAX_USERS; i++)
|
for (i = 0; i < MAX_USERS; i++)
|
||||||
|
|
Loading…
Reference in New Issue