From bdb1ddf1f1c491f18fc8159811d96e12a2a9cd00 Mon Sep 17 00:00:00 2001 From: Ishan09811 <156402647+Ishan09811@users.noreply.github.com> Date: Mon, 29 Jan 2024 15:30:12 +0530 Subject: [PATCH] fx --- .../src/main/java/com/panda3ds/pandroid/utils/GameUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/GameUtils.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/GameUtils.java index 05470b869..3a6f7c82f 100644 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/GameUtils.java +++ b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/GameUtils.java @@ -69,7 +69,7 @@ private static void writeChanges() { public static void setGameIcon(Context context, String id, Bitmap icon) { try { String iconsFolderPath = context.getExternalFilesDir(null) + "/icons/"; - FileUtils.createDir(iconsFolderPath); + FileUtils.createDir(context, iconsFolderPath); String iconPath = iconsFolderPath + id + ".png"; @@ -95,6 +95,7 @@ public static Bitmap loadGameIcon(Context context, String id) { } return DEFAULT_ICON; } + private static class DataModel {