From 699bb21788e590869a1fffb71268de3fdad3c37c Mon Sep 17 00:00:00 2001 From: Ishan09811 <156402647+Ishan09811@users.noreply.github.com> Date: Sun, 11 Feb 2024 16:36:18 +0530 Subject: [PATCH] fx --- .../com/panda3ds/pandroid/view/PandaGlRenderer.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/PandaGlRenderer.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/PandaGlRenderer.java index eca705a45..1ef8df6d0 100644 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/PandaGlRenderer.java +++ b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/PandaGlRenderer.java @@ -31,11 +31,9 @@ public class PandaGlRenderer implements GLSurfaceView.Renderer, ConsoleRenderer private int screenTexture; public int screenFbo; private final Context context; - private final GameActivity gameActivity; - PandaGlRenderer(GameActivity gameActivity, Context context, String romPath) { + PandaGlRenderer(Context context, String romPath) { super(); - this.gameActivity = gameActivity; this.context = context; this.romPath = romPath; @@ -105,13 +103,7 @@ public void run() { AlertDialog.Builder builder = new AlertDialog.Builder(context); builder.setTitle("Failed to load ROM") .setMessage("Make sure it's a valid 3DS ROM and that storage permissions are configured properly.") - .setPositiveButton("OK", new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - // Finish the GameActivity when OK is clicked - gameActivity.finish(); - } - }) + .setPositiveButton("OK", null) .setCancelable(false) .show(); }