Handles cases where the Manufacturer ID is 43 instead of 4E
So these games are no longer listed as Uknown in their manufacturer field.
This commit is contained in:
parent
5085b82f2c
commit
cbecaf0c05
|
@ -715,6 +715,7 @@ void CRomBrowser::RomList_GetDispInfo(uint32_t pnmh)
|
|||
case RB_Manufacturer:
|
||||
switch (pRomInfo->Manufacturer)
|
||||
{
|
||||
case 'C':wcsncpy(lpdi->item.pszText, L"Nintendo", lpdi->item.cchTextMax / sizeof(wchar_t)); break;
|
||||
case 'N':wcsncpy(lpdi->item.pszText, L"Nintendo", lpdi->item.cchTextMax / sizeof(wchar_t)); break;
|
||||
case 0: wcsncpy(lpdi->item.pszText, L"None", lpdi->item.cchTextMax / sizeof(wchar_t)); break;
|
||||
default: swprintf(lpdi->item.pszText, lpdi->item.cchTextMax / sizeof(wchar_t), L"(Unknown %c (%X))", pRomInfo->Manufacturer, pRomInfo->Manufacturer); break;
|
||||
|
|
|
@ -116,6 +116,7 @@ DWORD CALLBACK RomInfoProc(HWND hDlg, DWORD uMsg, DWORD wParam, DWORD lParam)
|
|||
|
||||
switch (RomHeader[0x38])
|
||||
{
|
||||
case 'C': SetDlgItemText(hDlg, IDC_INFO_MANUFACTURER, L"Nintendo"); break;
|
||||
case 'N': SetDlgItemText(hDlg, IDC_INFO_MANUFACTURER, L"Nintendo"); break;
|
||||
case 0: SetDlgItemText(hDlg, IDC_INFO_MANUFACTURER, L"None"); break;
|
||||
default: SetDlgItemText(hDlg, IDC_INFO_MANUFACTURER, L"(Unknown)"); break;
|
||||
|
|
Loading…
Reference in New Issue