mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 05:15:46 -04:00
Android: Get it running again
Currently settings are not changable.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user