Merge pull request #1894 from Squall-Leonhart/master
Handles cases where the Manufacturer ID is 43 instead of 4E
This commit is contained in:
commit
b63c1cbc3c
|
@ -715,6 +715,7 @@ void CRomBrowser::RomList_GetDispInfo(uint32_t pnmh)
|
||||||
case RB_Manufacturer:
|
case RB_Manufacturer:
|
||||||
switch (pRomInfo->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 '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;
|
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;
|
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])
|
switch (RomHeader[0x38])
|
||||||
{
|
{
|
||||||
|
case 'C': SetDlgItemText(hDlg, IDC_INFO_MANUFACTURER, L"Nintendo"); break;
|
||||||
case 'N': 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;
|
case 0: SetDlgItemText(hDlg, IDC_INFO_MANUFACTURER, L"None"); break;
|
||||||
default: SetDlgItemText(hDlg, IDC_INFO_MANUFACTURER, L"(Unknown)"); break;
|
default: SetDlgItemText(hDlg, IDC_INFO_MANUFACTURER, L"(Unknown)"); break;
|
||||||
|
|
Loading…
Reference in New Issue