From f0dd11c50ca33d24b820299feff765d7ca1f45bf Mon Sep 17 00:00:00 2001 From: sorgelig Date: Wed, 2 Jan 2019 02:57:28 +0800 Subject: [PATCH] Core name in joystick button definition as a hint. --- menu.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/menu.cpp b/menu.cpp index b902e59..9bfd67f 100644 --- a/menu.cpp +++ b/menu.cpp @@ -660,7 +660,7 @@ void HandleUI(void) static char opensave; char *p; - char s[40]; + static char s[256]; unsigned char m = 0, up, down, select, menu, right, left, plus, minus; char enable; static int reboot_req = 0; @@ -1298,7 +1298,10 @@ void HandleUI(void) } OsdWrite(m++, " Core \x16", menusub == 0, 0); - OsdWrite(m++, " Define joystick buttons \x16", menusub == 1, 0); + sprintf(s, " Define %s buttons ", is_menu_core() ? "System" : user_io_get_core_name_ex()); + s[27] = '\x16'; + s[28] = 0; + OsdWrite(m++, s, menusub == 1, 0); OsdWrite(m++, " Button/Key remap for game \x16", menusub == 2, 0); OsdWrite(4, "", 0, 0);