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:
Squall Leonhart 2021-01-09 11:07:21 +11:00
parent 5085b82f2c
commit cbecaf0c05
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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;