Add a warning when both Cg and XML shaders are selected.

This commit is contained in:
Themaister 2011-01-05 19:29:29 +01:00
parent e5382f8631
commit 988d1b3334
2 changed files with 7 additions and 0 deletions

View File

@ -98,4 +98,8 @@ extern struct global g_extern;
fprintf(stderr, "SSNES [ERROR] :: " msg, ##args); \
} while(0)
#define SSNES_WARN(msg, args...) do { \
fprintf(stderr, "SSNES [WARN] :: " msg, ##args); \
} while(0)
#endif

View File

@ -172,6 +172,9 @@ static const input_driver_t input_glfw = {
static inline bool gl_shader_init(void)
{
if (strlen(g_settings.video.cg_shader_path) > 0 && strlen(g_settings.video.bsnes_shader_path) > 0)
SSNES_WARN("Both Cg and bSNES XML shader are defined in config file. Cg shader will be selected by default.\n");
#ifdef HAVE_CG
if (strlen(g_settings.video.cg_shader_path) > 0)
return gl_cg_init(g_settings.video.cg_shader_path);