From: Toni Wilen Date: Fri, 26 May 2023 18:33:41 +0000 (+0300) Subject: Custom gameports translation string. X-Git-Tag: 5.0.0~7 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=44fd3ee6be60d82f0e0a98dae93261755b755429;p=francis%2Fwinuae.git Custom gameports translation string. --- diff --git a/od-win32/resources/resource.h b/od-win32/resources/resource.h index b6931be0..c15fc265 100644 --- a/od-win32/resources/resource.h +++ b/od-win32/resources/resource.h @@ -430,6 +430,7 @@ #define IDS_BOARDID 435 #define IDS_ASSOCIATEEXTENSIONS 436 #define IDS_ASSOCIATEEXTENSION 436 +#define IDS_GAMEPORTS_CUSTOM 437 #define IDS_QS_MODELS 1000 #define IDS_QS_MODEL_A500 1001 #define IDS_QS_MODEL_A500P 1002 diff --git a/od-win32/resources/winuae.rc b/od-win32/resources/winuae.rc index c1e61d22..f8cbcd11 100644 --- a/od-win32/resources/winuae.rc +++ b/od-win32/resources/winuae.rc @@ -2231,6 +2231,7 @@ BEGIN IDS_BOARDSIZE "Size" IDS_BOARDID "ID" IDS_ASSOCIATEEXTENSION "Extension" + IDS_GAMEPORTS_CUSTOM "Custom" END #endif // English (United Kingdom) resources diff --git a/od-win32/win32gui.cpp b/od-win32/win32gui.cpp index 071e432d..eb7b1fe6 100644 --- a/od-win32/win32gui.cpp +++ b/od-win32/win32gui.cpp @@ -17376,7 +17376,7 @@ static int get_jport_sub(HWND hDlg, int idx) static void updatejoyport (HWND hDlg, int changedport) { int i, j; - TCHAR tmp[MAX_DPATH], tmp2[MAX_DPATH]; + TCHAR tmp[MAX_DPATH], tmp2[MAX_DPATH], tmp3[MAX_DPATH]; SetDlgItemInt (hDlg, IDC_INPUTSPEEDM, workprefs.input_mouse_speed, FALSE); xSendDlgItemMessage (hDlg, IDC_PORT_TABLET_CURSOR, CB_SETCURSEL, workprefs.input_magic_mouse_cursor, 0); @@ -17429,10 +17429,11 @@ static void updatejoyport (HWND hDlg, int changedport) for (j = 0; j < inputdevice_get_device_total (IDTYPE_MOUSE); j++, total++) xSendDlgItemMessage (hDlg, id, CB_ADDSTRING, 0, (LPARAM)inputdevice_get_device_name (IDTYPE_MOUSE, j)); } + WIN32GUI_LoadUIString(IDS_GAMEPORTS_CUSTOM, tmp3, sizeof(tmp3) / sizeof(TCHAR)); for (j = 0; j < MAX_JPORTS_CUSTOM; j++, total++) { _stprintf(tmp2, _T("<%s>"), szNone.c_str()); inputdevice_parse_jport_custom(&workprefs, j, i, tmp2); - _stprintf(tmp, _T("Custom %d: %s"), j + 1, tmp2); + _stprintf(tmp, _T("%s %d: %s"), tmp3, j + 1, tmp2); xSendDlgItemMessage(hDlg, id, CB_ADDSTRING, 0, (LPARAM)tmp); }