Skip to content

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Feb 11, 2024
1 parent 3501c26 commit 699bb21
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 699bb21

Please sign in to comment.