Skip to content

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Jan 29, 2024
1 parent 4122e24 commit a7fb926
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ private Context getContext() {
return context;
}

private GameMetadata(String id, String romPath, String title, String publisher, Bitmap icon, GameRegion[] regions) {
private GameMetadata(String id, String romPath, String title, String publisher, Bitmap icon, GameRegion[] regions, Context context) {
this.id = id;
this.title = title;
this.publisher = publisher;
this.romPath = romPath;
this.regions = regions;
this.context = context;
if (icon != null) {
GameUtils.setGameIcon(getContext(), id, icon);
GameUtils.setGameIcon(context, id, icon);
}
}

Expand Down Expand Up @@ -63,7 +64,7 @@ public String getPublisher() {

public Bitmap getIcon() {
if (icon == null) {
icon = GameUtils.loadGameIcon(getContext(), id);
icon = GameUtils.loadGameIcon(context, id);
}
return icon;
}
Expand Down

0 comments on commit a7fb926

Please sign in to comment.