mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 13:20:43 +00:00
Load RGUI CGP on startup.
This commit is contained in:
parent
d2f9eb300b
commit
37a276af9b
@ -228,6 +228,17 @@ rgui_handle_t *rgui_init(const char *base_path,
|
|||||||
g_extern.lifecycle_mode_state |= (1ULL << MODE_EXIT);
|
g_extern.lifecycle_mode_state |= (1ULL << MODE_EXIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_SHADER_MANAGER
|
||||||
|
char cgp_path[PATH_MAX];
|
||||||
|
const char *shader_dir = *g_settings.video.shader_dir ?
|
||||||
|
g_settings.video.shader_dir : g_settings.system_directory;
|
||||||
|
fill_pathname_join(cgp_path, shader_dir, "rgui.cgp", sizeof(cgp_path));
|
||||||
|
config_file_t *conf = config_file_new(cgp_path);
|
||||||
|
if (conf)
|
||||||
|
gfx_shader_read_conf_cgp(conf, &rgui->shader);
|
||||||
|
config_file_free(conf);
|
||||||
|
#endif
|
||||||
|
|
||||||
return rgui;
|
return rgui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user