mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Android: Show filenames for games with an empty title.
This commit is contained in:
parent
58f9b05e7e
commit
1f07473f1f
@ -152,8 +152,16 @@ public final class GameDatabase extends SQLiteOpenHelper
|
||||
// Check that the file has an extension we care about before trying to read out of it.
|
||||
if (allowedExtensions.contains(fileExtension))
|
||||
{
|
||||
String name = NativeLibrary.GetTitle(filePath);
|
||||
|
||||
// If the game's title field is empty, use the filename.
|
||||
if (name.isEmpty())
|
||||
{
|
||||
name = filePath.substring(filePath.lastIndexOf("/") + 1);
|
||||
}
|
||||
|
||||
ContentValues game = Game.asContentValues(NativeLibrary.GetPlatform(filePath),
|
||||
NativeLibrary.GetTitle(filePath),
|
||||
name,
|
||||
NativeLibrary.GetDescription(filePath).replace("\n", " "),
|
||||
NativeLibrary.GetCountry(filePath),
|
||||
filePath,
|
||||
|
Loading…
Reference in New Issue
Block a user