mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Cleanups
This commit is contained in:
parent
7625a790ba
commit
48987918e4
2
driver.c
2
driver.c
@ -133,7 +133,7 @@ static const void *find_driver_nonempty(const char *label, int i,
|
|||||||
static int driver_find_index(const char * label, const char *drv)
|
static int driver_find_index(const char * label, const char *drv)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
char str[256];
|
char str[256] = {0};
|
||||||
|
|
||||||
for (i = 0;
|
for (i = 0;
|
||||||
find_driver_nonempty(label, i, str, sizeof(str)) != NULL; i++)
|
find_driver_nonempty(label, i, str, sizeof(str)) != NULL; i++)
|
||||||
|
16
runloop.c
16
runloop.c
@ -236,8 +236,10 @@ static bool runloop_check_movie_record(void)
|
|||||||
|
|
||||||
static bool runloop_check_movie_init(void)
|
static bool runloop_check_movie_init(void)
|
||||||
{
|
{
|
||||||
char msg[128], path[PATH_MAX_LENGTH];
|
char msg[128] = {0};
|
||||||
settings_t *settings = config_get_ptr();
|
char path[PATH_MAX_LENGTH] = {0};
|
||||||
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
if (bsv_movie_ctl(BSV_MOVIE_CTL_IS_INITED, NULL))
|
if (bsv_movie_ctl(BSV_MOVIE_CTL_IS_INITED, NULL))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -429,7 +431,7 @@ static void runloop_check_fast_forward_button(bool fastforward_pressed,
|
|||||||
static void runloop_check_stateslots(settings_t *settings,
|
static void runloop_check_stateslots(settings_t *settings,
|
||||||
bool pressed_increase, bool pressed_decrease)
|
bool pressed_increase, bool pressed_decrease)
|
||||||
{
|
{
|
||||||
char msg[128];
|
char msg[128] = {0};
|
||||||
|
|
||||||
/* Save state slots */
|
/* Save state slots */
|
||||||
if (pressed_increase)
|
if (pressed_increase)
|
||||||
@ -501,8 +503,8 @@ static bool shader_dir_init(rarch_dir_list_t *dir_list)
|
|||||||
static void runloop_check_shader_dir(rarch_dir_list_t *dir_list,
|
static void runloop_check_shader_dir(rarch_dir_list_t *dir_list,
|
||||||
bool pressed_next, bool pressed_prev)
|
bool pressed_next, bool pressed_prev)
|
||||||
{
|
{
|
||||||
uint32_t ext_hash;
|
uint32_t ext_hash = 0;
|
||||||
char msg[128];
|
char msg[128] = {0};
|
||||||
const char *shader = NULL;
|
const char *shader = NULL;
|
||||||
const char *ext = NULL;
|
const char *ext = NULL;
|
||||||
enum rarch_shader_type type = RARCH_SHADER_NONE;
|
enum rarch_shader_type type = RARCH_SHADER_NONE;
|
||||||
@ -569,8 +571,8 @@ static void runloop_check_shader_dir(rarch_dir_list_t *dir_list,
|
|||||||
**/
|
**/
|
||||||
static bool rarch_game_specific_options(char **output)
|
static bool rarch_game_specific_options(char **output)
|
||||||
{
|
{
|
||||||
char game_path[PATH_MAX_LENGTH];
|
char game_path[PATH_MAX_LENGTH] = {0};
|
||||||
config_file_t *option_file = NULL;
|
config_file_t *option_file = NULL;
|
||||||
|
|
||||||
if (!retroarch_validate_game_options(game_path, sizeof(game_path), false))
|
if (!retroarch_validate_game_options(game_path, sizeof(game_path), false))
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user