mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
Run clang-format
This commit is contained in:
parent
f37bd9363f
commit
adcc9d93e4
1 changed files with 20 additions and 21 deletions
|
@ -91,29 +91,28 @@ public class PandaGlRenderer implements GLSurfaceView.Renderer, ConsoleRenderer
|
||||||
AlberDriver.Initialize();
|
AlberDriver.Initialize();
|
||||||
AlberDriver.setShaderJitEnabled(GlobalConfig.get(GlobalConfig.KEY_SHADER_JIT));
|
AlberDriver.setShaderJitEnabled(GlobalConfig.get(GlobalConfig.KEY_SHADER_JIT));
|
||||||
|
|
||||||
// If loading the ROM failed, display an error message and early exit
|
// If loading the ROM failed, display an error message and early exit
|
||||||
if (!AlberDriver.LoadRom(romPath)) {
|
if (!AlberDriver.LoadRom(romPath)) {
|
||||||
// Get a handler that can be used to post to the main thread
|
// Get a handler that can be used to post to the main thread
|
||||||
Handler mainHandler = new Handler(context.getMainLooper());
|
Handler mainHandler = new Handler(context.getMainLooper());
|
||||||
|
|
||||||
Runnable runnable = new Runnable() {
|
Runnable runnable = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
||||||
builder.setTitle("Failed to load ROM")
|
builder.setTitle("Failed to load ROM")
|
||||||
.setMessage("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.")
|
||||||
.setPositiveButton("OK", null)
|
.setPositiveButton("OK", null)
|
||||||
.setCancelable(false)
|
.setCancelable(false)
|
||||||
.show();
|
.show();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
mainHandler.post(runnable);
|
mainHandler.post(runnable);
|
||||||
|
|
||||||
GameMetadata game = GameUtils.getCurrentGame();
|
|
||||||
GameUtils.removeGame(game);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
GameMetadata game = GameUtils.getCurrentGame();
|
||||||
|
GameUtils.removeGame(game);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Load the SMDH
|
// Load the SMDH
|
||||||
byte[] smdhData = AlberDriver.GetSmdh();
|
byte[] smdhData = AlberDriver.GetSmdh();
|
||||||
|
|
Loading…
Add table
Reference in a new issue