Android: Get it running again

Currently settings are not changable.
This commit is contained in:
Connor McLaughlin
2020-07-05 21:31:17 +10:00
parent 729e1b3392
commit a451e7f177
6 changed files with 121 additions and 495 deletions

View File

@ -13,19 +13,33 @@ public class GameListEntry {
PSExe
}
public enum CompatibilityRating
{
Unknown,
DoesntBoot,
CrashesInIntro,
CrashesInGame,
GraphicalAudioIssues,
NoIssues,
}
private String mPath;
private String mCode;
private String mTitle;
private long mSize;
private String mModifiedTime;
private ConsoleRegion mRegion;
private EntryType mType;
private long mSize;
private CompatibilityRating mCompatibilityRating;
public GameListEntry(String path, String code, String title, String region,
String type, long size) {
public GameListEntry(String path, String code, String title, long size, String modifiedTime, String region,
String type, String compatibilityRating) {
mPath = path;
mCode = code;
mTitle = title;
mSize = size;
mModifiedTime = modifiedTime;
try {
mRegion = ConsoleRegion.valueOf(region);
@ -38,6 +52,12 @@ public class GameListEntry {
} catch (IllegalArgumentException e) {
mType = EntryType.Disc;
}
try {
mCompatibilityRating = CompatibilityRating.valueOf(compatibilityRating);
} catch (IllegalArgumentException e) {
mCompatibilityRating = CompatibilityRating.Unknown;
}
}
public String getPath() {
@ -52,12 +72,16 @@ public class GameListEntry {
return mTitle;
}
public String getModifiedTime() { return mModifiedTime; }
public ConsoleRegion getRegion() {
return mRegion;
}
public EntryType getType() { return mType; }
public CompatibilityRating getCompatibilityRating() { return mCompatibilityRating; }
public void fillView(View view) {
((TextView) view.findViewById(R.id.game_list_view_entry_title)).setText(mTitle);
((TextView) view.findViewById(R.id.game_list_view_entry_path)).setText(mPath);