Skip to content

Commit

Permalink
Start preparing XMB for Vita
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Aug 19, 2016
1 parent 4b9ced1 commit a27f042
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Makefile.griffin
Expand Up @@ -245,6 +245,7 @@ else ifeq ($(platform), vita)
HAVE_NETWORKING := 1
HAVE_NETPLAY := 1
HAVE_OVERLAY := 1
#HAVE_XMB := 1
RARCH_CONSOLE = 1
HAVE_THREADS := 1
endif
Expand Down Expand Up @@ -355,6 +356,10 @@ endif

CFLAGS += -std=gnu99 -DSINC_LOWER_QUALITY -DHAVE_RGUI -DHAVE_MENU -DHAVE_GRIFFIN=1 -Wno-char-subscripts -DRARCH_INTERNAL

ifeq ($(HAVE_XMB), 1)
CFLAGS += -DHAVE_XMB
endif

ifeq ($(HAVE_LANGEXTRA), 1)
CFLAGS += -DHAVE_LANGEXTRA
endif
Expand Down
2 changes: 1 addition & 1 deletion config.def.h
Expand Up @@ -545,7 +545,7 @@ static float menu_footer_opacity = 1.000;

static float menu_header_opacity = 1.000;

#ifdef HAVE_MATERIALUI
#if defined(HAVE_MATERIALUI) || defined(HAVE_XMB)
static unsigned menu_background_gradient = 4;
#endif

Expand Down
10 changes: 8 additions & 2 deletions configuration.c
Expand Up @@ -494,7 +494,9 @@ static void config_set_defaults(void)
settings->menu.xmb.theme = xmb_icon_theme;
settings->menu.xmb.menu_color_theme = menu_background_gradient;
settings->menu.xmb.shadows_enable = xmb_shadows_enable;
#ifdef HAVE_SHADERPIPELINE
settings->menu.xmb.shader_pipeline = menu_shader_pipeline;
#endif
settings->menu.xmb.show_settings = xmb_show_settings;
#ifdef HAVE_IMAGEVIEWER
settings->menu.xmb.show_images = xmb_show_images;
Expand Down Expand Up @@ -1455,12 +1457,14 @@ static bool config_load_file(const char *path, bool set_defaults)
#ifdef HAVE_MENU
{ "xmb_scale_factor", &settings->menu.xmb.scale_factor},
{ "xmb_alpha_factor", &settings->menu.xmb.alpha_factor},
{ "xmb_theme", &settings->menu.xmb.theme},
#ifdef HAVE_XMB
{ "xmb_theme", &settings->menu.xmb.theme},
{ "xmb_menu_color_theme", &settings->menu.xmb.menu_color_theme},
#endif
{ "materialui_menu_color_theme", &settings->menu.materialui.menu_color_theme},
#ifdef HAVE_SHADERPIPELINE
{ "menu_shader_pipeline", &settings->menu.xmb.shader_pipeline},
#endif
#endif
{ "audio_out_rate", &settings->audio.out_rate},
{ "audio_block_frames", &settings->audio.block_frames},
Expand Down Expand Up @@ -2970,12 +2974,14 @@ bool config_save_file(const char *path)
{ "menu_thumbnails", settings->menu.thumbnails},
{ "xmb_scale_factor", settings->menu.xmb.scale_factor},
{ "xmb_alpha_factor", settings->menu.xmb.alpha_factor},
{ "xmb_theme", settings->menu.xmb.theme},
#ifdef HAVE_XMB
{ "xmb_theme", settings->menu.xmb.theme},
{ "xmb_menu_color_theme", settings->menu.xmb.menu_color_theme},
#endif
{ "materialui_menu_color_theme", settings->menu.materialui.menu_color_theme},
#ifdef HAVE_SHADERPIPELINE
{ "menu_shader_pipeline", settings->menu.xmb.shader_pipeline},
#endif
#endif
{ "audio_out_rate", settings->audio.out_rate},
{ "custom_viewport_width", settings->video_viewport_custom.width},
Expand Down

0 comments on commit a27f042

Please sign in to comment.