Get rid of macro

This commit is contained in:
twinaphex 2016-08-16 08:51:31 +02:00 committed by zeromus
parent be01a89164
commit 9893afc59a
1 changed files with 2 additions and 5 deletions

View File

@ -376,16 +376,13 @@ static MAKER makerCodes[] = {
{ 0x4849, "Yojigen" },
};
#define makerNum sizeof(makerCodes) / sizeof(makerCodes[0])
std::string getDeveloperNameByID(u16 id)
{
for (u32 i = 0; i < makerNum; i++)
u32 i;
for (i = 0; i < ARRAY_SIZE(makerCodes); i++)
{
if (makerCodes[i].code == id)
{
return makerCodes[i].name;
}
}
return "Unknown";
}