mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
Merge pull request #403 from Ishan09811/patch-13
Android: Use Dialog instead of Toast when ROM loading fails
This commit is contained in:
commit
e2884e8413
1 changed files with 6 additions and 5 deletions
|
@ -9,6 +9,7 @@ import android.opengl.GLSurfaceView;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
import androidx.appcompat.app.AlertDialog;
|
||||||
import com.panda3ds.pandroid.AlberDriver;
|
import com.panda3ds.pandroid.AlberDriver;
|
||||||
import com.panda3ds.pandroid.data.SMDH;
|
import com.panda3ds.pandroid.data.SMDH;
|
||||||
import com.panda3ds.pandroid.data.config.GlobalConfig;
|
import com.panda3ds.pandroid.data.config.GlobalConfig;
|
||||||
|
@ -98,11 +99,11 @@ public class PandaGlRenderer implements GLSurfaceView.Renderer, ConsoleRenderer
|
||||||
Runnable runnable = new Runnable() {
|
Runnable runnable = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
Toast
|
AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
||||||
.makeText(
|
builder.setTitle("Failed to load ROM")
|
||||||
context, "Failed to load ROM! Make sure it's a valid 3DS ROM and that storage permissions are configured properly.",
|
.setMessage("Make sure it's a valid 3DS ROM and that storage permissions are configured properly.")
|
||||||
Toast.LENGTH_LONG
|
.setPositiveButton("OK", null)
|
||||||
)
|
.setCancelable(false)
|
||||||
.show();
|
.show();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue