Android: When listing a rom not in rdb, use game file instead
This commit is contained in:
parent
b74e21d056
commit
d3f4132770
|
@ -1,5 +1,6 @@
|
||||||
#include "JavaRomList.h"
|
#include "JavaRomList.h"
|
||||||
#include "JavaBridge.h"
|
#include "JavaBridge.h"
|
||||||
|
#include <Project64-core/Multilanguage.h>
|
||||||
|
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
extern JavaBridge * g_JavaBridge;
|
extern JavaBridge * g_JavaBridge;
|
||||||
|
@ -17,6 +18,11 @@ void CJavaRomList::RomAddedToList(int32_t ListPos)
|
||||||
if (g_JavaBridge)
|
if (g_JavaBridge)
|
||||||
{
|
{
|
||||||
ROM_INFO * pRomInfo = &m_RomInfo[ListPos];
|
ROM_INFO * pRomInfo = &m_RomInfo[ListPos];
|
||||||
|
if (pRomInfo->GoodName[0] == '#' && strcmp("#340#", pRomInfo->GoodName) == 0 && g_Lang != nullptr)
|
||||||
|
{
|
||||||
|
std::string GoodName = g_Lang->GetString(RB_NOT_GOOD_FILE);
|
||||||
|
strncpy(pRomInfo->GoodName, GoodName.c_str(), sizeof(pRomInfo->GoodName) / sizeof(char));
|
||||||
|
}
|
||||||
g_JavaBridge->RomListAddItem(pRomInfo->szFullFileName, pRomInfo->FileName, pRomInfo->GoodName, pRomInfo->TextColor);
|
g_JavaBridge->RomListAddItem(pRomInfo->szFullFileName, pRomInfo->FileName, pRomInfo->GoodName, pRomInfo->TextColor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue