Cleanups
This commit is contained in:
parent
f8881f7cbe
commit
b5a7020366
|
@ -2458,10 +2458,8 @@ static int generic_action_ok_shader_preset_save(const char *path,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ACTION_OK_SHADER_PRESET_SAVE_PARENT:
|
case ACTION_OK_SHADER_PRESET_SAVE_PARENT:
|
||||||
{
|
|
||||||
fill_pathname_parent_dir_name(tmp, path_get(RARCH_PATH_BASENAME), sizeof(tmp));
|
fill_pathname_parent_dir_name(tmp, path_get(RARCH_PATH_BASENAME), sizeof(tmp));
|
||||||
fill_pathname_join(file, directory, tmp, sizeof(file));
|
fill_pathname_join(file, directory, tmp, sizeof(file));
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2167,7 +2167,6 @@ static bool rarch_game_specific_options(char **output)
|
||||||
if (!retroarch_validate_game_options(game_path,
|
if (!retroarch_validate_game_options(game_path,
|
||||||
game_path_size, false))
|
game_path_size, false))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (!config_file_exists(game_path))
|
if (!config_file_exists(game_path))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
|
|
@ -342,8 +342,9 @@ static void secondary_core_input_poll_null(void) { }
|
||||||
|
|
||||||
bool secondary_core_run_use_last_input(void)
|
bool secondary_core_run_use_last_input(void)
|
||||||
{
|
{
|
||||||
if (secondary_core_ensure_exists())
|
if (!secondary_core_ensure_exists())
|
||||||
{
|
return false;
|
||||||
|
|
||||||
retro_input_poll_t old_poll_function = secondary_callbacks.poll_cb;
|
retro_input_poll_t old_poll_function = secondary_callbacks.poll_cb;
|
||||||
retro_input_state_t old_input_function = secondary_callbacks.state_cb;
|
retro_input_state_t old_input_function = secondary_callbacks.state_cb;
|
||||||
|
|
||||||
|
@ -362,8 +363,6 @@ bool secondary_core_run_use_last_input(void)
|
||||||
secondary_core.retro_set_input_state(secondary_callbacks.state_cb);
|
secondary_core.retro_set_input_state(secondary_callbacks.state_cb);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool secondary_core_deserialize(const void *buffer, int size)
|
bool secondary_core_deserialize(const void *buffer, int size)
|
||||||
|
|
Loading…
Reference in New Issue