Buildfixes

This commit is contained in:
twinaphex 2016-04-28 20:55:26 +02:00
parent 48eb86cb47
commit 61d6fb57e6
3 changed files with 3 additions and 4 deletions

View File

@ -382,8 +382,8 @@ static void frontend_gx_process_args(int *argc, char *argv[])
/* A big hack: sometimes Salamander doesn't save the new core
* it loads on first boot, so we make sure
* settings->libretro is set here. */
if (!settings->libretro[0] && *argc >= 1 && strrchr(argv[0], '/'))
* settings->path.libretro is set here. */
if (!settings->path.libretro[0] && *argc >= 1 && strrchr(argv[0], '/'))
{
strlcpy(path, strrchr(argv[0], '/') + 1, sizeof(path));
if (path_file_exists(path))

View File

@ -2179,7 +2179,7 @@ static bool frontend_linux_set_fork(enum frontend_fork fork_mode)
settings_t *settings = config_get_ptr();
fill_pathname_application_path(executable_path, sizeof(executable_path));
strlcpy(settings->libretro, executable_path, sizeof(settings->libretro));
strlcpy(settings->path.libretro, executable_path, sizeof(settings->path.libretro));
}
rarch_ctl(RARCH_CTL_FORCE_QUIT, NULL);
break;

View File

@ -284,7 +284,6 @@ bool video_shader_driver_ctl(enum video_shader_driver_ctl_state state, void *dat
return current_shader->compile_program(program_info->data,
program_info->idx, NULL, program_info);
}
break;
case SHADER_CTL_USE:
{
video_shader_ctx_info_t *shader_info = (video_shader_ctx_info_t*)data;