2016-06-05 01:32:57 +00:00
|
|
|
#include "JavaRomList.h"
|
|
|
|
#include "JavaBridge.h"
|
2023-10-26 00:48:24 +00:00
|
|
|
#include <Project64-core/Multilanguage.h>
|
2016-06-05 01:32:57 +00:00
|
|
|
|
|
|
|
#ifdef ANDROID
|
|
|
|
extern JavaBridge * g_JavaBridge;
|
|
|
|
|
|
|
|
void CJavaRomList::RomListReset(void)
|
|
|
|
{
|
|
|
|
if (g_JavaBridge)
|
|
|
|
{
|
|
|
|
g_JavaBridge->RomListReset();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void CJavaRomList::RomAddedToList(int32_t ListPos)
|
|
|
|
{
|
|
|
|
if (g_JavaBridge)
|
|
|
|
{
|
|
|
|
ROM_INFO * pRomInfo = &m_RomInfo[ListPos];
|
2023-10-26 00:48:24 +00:00
|
|
|
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));
|
|
|
|
}
|
2016-06-05 01:32:57 +00:00
|
|
|
g_JavaBridge->RomListAddItem(pRomInfo->szFullFileName, pRomInfo->FileName, pRomInfo->GoodName, pRomInfo->TextColor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void CJavaRomList::RomListLoaded(void)
|
|
|
|
{
|
|
|
|
if (g_JavaBridge)
|
|
|
|
{
|
|
|
|
g_JavaBridge->RomListLoaded();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-13 10:15:12 +00:00
|
|
|
#endif
|