mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Use UICommon's game list code on Android
Deduplicates code, and gets rid of some problems the old code had (such as: bad performance when calling native functions, only one disc showing up for multi-disc games, Wii banners being low-res, unnecessarily much effort being needed for adding more metadata).
This commit is contained in:
@ -78,8 +78,15 @@ const std::string& GameFile::Lookup(DiscIO::Language language,
|
||||
const std::string&
|
||||
GameFile::LookupUsingConfigLanguage(const std::map<DiscIO::Language, std::string>& strings) const
|
||||
{
|
||||
#ifdef ANDROID
|
||||
// TODO: Make the Android app load the config at app start instead of emulation start
|
||||
// so that we can access the user's preference here
|
||||
const DiscIO::Language language = DiscIO::Language::English;
|
||||
#else
|
||||
const bool wii = DiscIO::IsWii(m_platform);
|
||||
return Lookup(SConfig::GetInstance().GetCurrentLanguage(wii), strings);
|
||||
const DiscIO::Language language = SConfig::GetInstance().GetCurrentLanguage(wii);
|
||||
#endif
|
||||
return Lookup(language, strings);
|
||||
}
|
||||
|
||||
GameFile::GameFile(const std::string& path)
|
||||
|
Reference in New Issue
Block a user