(RMenu/XDK1) Build fixes

This commit is contained in:
twinaphex 2013-05-05 21:16:34 +02:00
parent 9d2d0e5844
commit 87c59df6ea

View File

@ -270,9 +270,11 @@ static void menu_stack_push(unsigned menu_type, bool prev_dir)
case INGAME_MENU_VIDEO_OPTIONS: case INGAME_MENU_VIDEO_OPTIONS:
selected = FIRST_VIDEO_SETTING; selected = FIRST_VIDEO_SETTING;
break; break;
#ifdef HAVE_SHADER_MANAGER
case INGAME_MENU_SHADER_OPTIONS: case INGAME_MENU_SHADER_OPTIONS:
selected = FIRST_SHADERMAN_SETTING; selected = FIRST_SHADERMAN_SETTING;
break; break;
#endif
case INGAME_MENU_AUDIO_OPTIONS: case INGAME_MENU_AUDIO_OPTIONS:
selected = FIRST_AUDIO_SETTING; selected = FIRST_AUDIO_SETTING;
break; break;
@ -357,10 +359,12 @@ static void display_menubar(uint8_t menu_type)
case INGAME_MENU_VIDEO_OPTIONS_MODE: case INGAME_MENU_VIDEO_OPTIONS_MODE:
strlcpy(title, "Video Options", sizeof(title)); strlcpy(title, "Video Options", sizeof(title));
break; break;
#ifdef HAVE_SHADER_MANAGER
case INGAME_MENU_SHADER_OPTIONS: case INGAME_MENU_SHADER_OPTIONS:
case INGAME_MENU_SHADER_OPTIONS_MODE: case INGAME_MENU_SHADER_OPTIONS_MODE:
strlcpy(title, "Shader Options", sizeof(title)); strlcpy(title, "Shader Options", sizeof(title));
break; break;
#endif
case INGAME_MENU_INPUT_OPTIONS: case INGAME_MENU_INPUT_OPTIONS:
case INGAME_MENU_INPUT_OPTIONS_MODE: case INGAME_MENU_INPUT_OPTIONS_MODE:
strlcpy(title, "Input Options", sizeof(title)); strlcpy(title, "Input Options", sizeof(title));
@ -1532,10 +1536,12 @@ static int set_setting_action(uint8_t menu_type, unsigned switchvalue, uint64_t
if (input & (1ULL << DEVICE_NAV_B)) if (input & (1ULL << DEVICE_NAV_B))
menu_stack_push(INGAME_MENU_VIDEO_OPTIONS, false); menu_stack_push(INGAME_MENU_VIDEO_OPTIONS, false);
break; break;
#ifdef HAVE_SHADER_MANAGER
case INGAME_MENU_SHADER_OPTIONS_MODE: case INGAME_MENU_SHADER_OPTIONS_MODE:
if (input & (1ULL << DEVICE_NAV_B)) if (input & (1ULL << DEVICE_NAV_B))
menu_stack_push(INGAME_MENU_SHADER_OPTIONS, false); menu_stack_push(INGAME_MENU_SHADER_OPTIONS, false);
break; break;
#endif
case INGAME_MENU_AUDIO_OPTIONS_MODE: case INGAME_MENU_AUDIO_OPTIONS_MODE:
if (input & (1ULL << DEVICE_NAV_B)) if (input & (1ULL << DEVICE_NAV_B))
menu_stack_push(INGAME_MENU_AUDIO_OPTIONS, false); menu_stack_push(INGAME_MENU_AUDIO_OPTIONS, false);
@ -1743,9 +1749,9 @@ static int select_setting(void *data, uint64_t input)
first_setting = FIRST_VIDEO_SETTING; first_setting = FIRST_VIDEO_SETTING;
max_settings = MAX_NO_OF_VIDEO_SETTINGS; max_settings = MAX_NO_OF_VIDEO_SETTINGS;
break; break;
#ifdef HAVE_SHADER_MANAGER
case INGAME_MENU_SHADER_OPTIONS: case INGAME_MENU_SHADER_OPTIONS:
first_setting = FIRST_SHADERMAN_SETTING; first_setting = FIRST_SHADERMAN_SETTING;
#ifdef HAVE_SHADER_MANAGER
switch (rgui->shader.passes) switch (rgui->shader.passes)
{ {
case 0: case 0:
@ -1776,8 +1782,8 @@ static int select_setting(void *data, uint64_t input)
max_settings = SHADERMAN_SHADER_7_SCALE+1; max_settings = SHADERMAN_SHADER_7_SCALE+1;
break; break;
} }
#endif
break; break;
#endif
} }
float y_increment = POSITION_Y_START; float y_increment = POSITION_Y_START;
@ -2101,11 +2107,13 @@ static int select_setting(void *data, uint64_t input)
strlcpy(setting_text, "...", sizeof(setting_text)); strlcpy(setting_text, "...", sizeof(setting_text));
strlcpy(comment, "Set core-specific options.", sizeof(comment)); strlcpy(comment, "Set core-specific options.", sizeof(comment));
break; break;
#ifdef HAVE_SHADER_MANAGER
case INGAME_MENU_SHADER_OPTIONS_MODE: case INGAME_MENU_SHADER_OPTIONS_MODE:
strlcpy(text, "Shader Options", sizeof(text)); strlcpy(text, "Shader Options", sizeof(text));
strlcpy(setting_text, "...", sizeof(setting_text)); strlcpy(setting_text, "...", sizeof(setting_text));
strlcpy(comment, "Set and manage shader options.", sizeof(comment)); strlcpy(comment, "Set and manage shader options.", sizeof(comment));
break; break;
#endif
case INGAME_MENU_LOAD_GAME_HISTORY_MODE: case INGAME_MENU_LOAD_GAME_HISTORY_MODE:
strlcpy(text, "Load Game (History)", sizeof(text)); strlcpy(text, "Load Game (History)", sizeof(text));
strlcpy(setting_text, "...", sizeof(setting_text)); strlcpy(setting_text, "...", sizeof(setting_text));