mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Cleanups
This commit is contained in:
parent
07632702fb
commit
e86bd1b021
@ -648,7 +648,8 @@ static void input_driver_command_init(void)
|
|||||||
if (!settings->stdin_cmd_enable && !settings->network_cmd_enable)
|
if (!settings->stdin_cmd_enable && !settings->network_cmd_enable)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (settings->stdin_cmd_enable && input_driver_ctl(RARCH_INPUT_CTL_GRAB_STDIN, NULL))
|
if (settings->stdin_cmd_enable
|
||||||
|
&& input_driver_ctl(RARCH_INPUT_CTL_GRAB_STDIN, NULL))
|
||||||
{
|
{
|
||||||
RARCH_WARN("stdin command interface is desired, but input driver has already claimed stdin.\n"
|
RARCH_WARN("stdin command interface is desired, but input driver has already claimed stdin.\n"
|
||||||
"Cannot use this command interface.\n");
|
"Cannot use this command interface.\n");
|
||||||
@ -668,7 +669,8 @@ static void input_driver_remote_init(void)
|
|||||||
|
|
||||||
if (settings->network_remote_enable)
|
if (settings->network_remote_enable)
|
||||||
{
|
{
|
||||||
if (!(input_driver_remote = rarch_remote_new(settings->network_remote_base_port)))
|
if (!(input_driver_remote
|
||||||
|
= rarch_remote_new(settings->network_remote_base_port)))
|
||||||
RARCH_ERR("Failed to initialize remote gamepad interface.\n");
|
RARCH_ERR("Failed to initialize remote gamepad interface.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -749,7 +751,8 @@ bool input_driver_ctl(enum rarch_input_ctl_state state, void *data)
|
|||||||
i = drv.len;
|
i = drv.len;
|
||||||
|
|
||||||
if (i >= 0)
|
if (i >= 0)
|
||||||
current_input = (const input_driver_t*)input_driver_find_handle(i);
|
current_input = (const input_driver_t*)
|
||||||
|
input_driver_find_handle(i);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
unsigned d;
|
unsigned d;
|
||||||
@ -760,7 +763,8 @@ bool input_driver_ctl(enum rarch_input_ctl_state state, void *data)
|
|||||||
RARCH_LOG_OUTPUT("\t%s\n", input_driver_find_ident(d));
|
RARCH_LOG_OUTPUT("\t%s\n", input_driver_find_ident(d));
|
||||||
RARCH_WARN("Going to default to first input driver...\n");
|
RARCH_WARN("Going to default to first input driver...\n");
|
||||||
|
|
||||||
current_input = (const input_driver_t*)input_driver_find_handle(0);
|
current_input = (const input_driver_t*)
|
||||||
|
input_driver_find_handle(0);
|
||||||
|
|
||||||
if (current_input)
|
if (current_input)
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user