Skip to content

Commit

Permalink
Android: When listing a rom not in rdb, use game file instead
Browse files Browse the repository at this point in the history
  • Loading branch information
project64 committed Oct 26, 2023
1 parent b74e21d commit d3f4132
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/Android/Bridge/JavaRomList.cpp
@@ -1,5 +1,6 @@
#include "JavaRomList.h"
#include "JavaBridge.h"
#include <Project64-core/Multilanguage.h>

#ifdef ANDROID
extern JavaBridge * g_JavaBridge;
Expand All @@ -17,6 +18,11 @@ void CJavaRomList::RomAddedToList(int32_t ListPos)
if (g_JavaBridge)
{
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);
}
}
Expand Down

0 comments on commit d3f4132

Please sign in to comment.