(GX) Build fixes/cleanups

This commit is contained in:
twinaphex 2014-08-12 03:55:07 +02:00
parent 2cb8d06c7a
commit 126e115abd
2 changed files with 5 additions and 7 deletions

View File

@ -86,7 +86,7 @@ static void find_and_set_first_file(char *path, size_t sizeof_path, const char *
find_first_libretro_core(first_file, sizeof(first_file),
g_defaults.core_dir, ext);
if (first_file)
if (first_file[0] != '\0')
{
fill_pathname_join(path, g_defaults.core_dir, first_file, sizeof_path);
RARCH_LOG("libretro_path now set to: %s.\n", path);

View File

@ -2966,19 +2966,17 @@ static unsigned menu_common_shader_manager_get_type(const struct gfx_shader *sha
static int menu_common_shader_manager_setting_toggle(unsigned id,
unsigned action, rarch_setting_t *setting)
{
rarch_setting_t *setting_data, *current_setting;
if (!driver.menu)
{
RARCH_ERR("Cannot toggle shader setting, menu handle is not initialized.\n");
return 0;
}
(void)id;
(void)action;
setting_data = (rarch_setting_t *)setting_data_get_list();
#ifdef HAVE_SHADER_MANAGER
rarch_setting_t *current_setting;
rarch_setting_t *setting_data = (rarch_setting_t *)setting_data_get_list();
unsigned dist_shader = id - MENU_SETTINGS_SHADER_0;
unsigned dist_filter = id - MENU_SETTINGS_SHADER_0_FILTER;
unsigned dist_scale = id - MENU_SETTINGS_SHADER_0_SCALE;