From 074ff4b2fcb0df5579b9c05ab7f1a83e025af6bd Mon Sep 17 00:00:00 2001 From: TwinAphex51224 Date: Tue, 29 May 2012 21:47:53 +0200 Subject: [PATCH] (360) Add S_LBL_RARCH_VERSION --- 360/menu.cpp | 5 +---- console/console_settings.c | 3 +++ console/console_settings.h | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/360/menu.cpp b/360/menu.cpp index f4eb0bdd25..143ff5440b 100644 --- a/360/menu.cpp +++ b/360/menu.cpp @@ -506,12 +506,9 @@ HRESULT CRetroArchMain::OnInit(XUIMessageInit * pInitData, BOOL& bHandled) char core_text[256]; snprintf(core_text, sizeof(core_text), "%s (v%s)", id, info.library_version); - char package_version[32]; - snprintf(package_version, sizeof(core_text), "RetroArch %s", PACKAGE_VERSION); - rarch_convert_char_to_wchar(strw_buffer, core_text, sizeof(strw_buffer)); m_core.SetText(strw_buffer); - rarch_convert_char_to_wchar(strw_buffer, package_version, sizeof(strw_buffer)); + rarch_settings_create_menu_item_label(strw_buffer, S_LBL_RARCH_VERSION, sizeof(strw_buffer)); m_title.SetText(strw_buffer); return 0; diff --git a/console/console_settings.c b/console/console_settings.c index e80e232fd1..9b5c8a319f 100644 --- a/console/console_settings.c +++ b/console/console_settings.c @@ -216,6 +216,9 @@ void rarch_settings_create_menu_item_label(wchar_t * strwbuf, unsigned setting, break; case S_LBL_SHADER_2: snprintf(str, sizeof(str), "Shader #2: %s", g_settings.video.second_pass_shader); + break; + case S_LBL_RARCH_VERSION: + snprintf(str, sizeof(str), "RetroArch %s", PACKAGE_VERSION); break; case S_LBL_SCALE_FACTOR: snprintf(str, sizeof(str), "Scale Factor: %f (X) / %f (Y)", g_settings.video.fbo_scale_x, g_settings.video.fbo_scale_y); diff --git a/console/console_settings.h b/console/console_settings.h index 72ded2555c..4e9f6d90ff 100644 --- a/console/console_settings.h +++ b/console/console_settings.h @@ -79,6 +79,7 @@ enum enum { S_LBL_ASPECT_RATIO = 0, + S_LBL_RARCH_VERSION, S_LBL_ROTATION, S_LBL_SHADER, S_LBL_SHADER_2,