mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
Android: Don't show game ID after game title
This commit is contained in:
@@ -780,7 +780,12 @@ JNIEXPORT jstring JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_NativeLibrary_GetCurrentTitleDescriptionUnchecked(JNIEnv* env,
|
||||
jobject obj)
|
||||
{
|
||||
return ToJString(env, SConfig::GetInstance().GetTitleDescription());
|
||||
// Prefer showing just the name. If no name is available, show just the game ID.
|
||||
std::string description = SConfig::GetInstance().GetTitleName();
|
||||
if (description.empty())
|
||||
description = SConfig::GetInstance().GetTitleDescription();
|
||||
|
||||
return ToJString(env, description);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user