v3.2.5: Updated missing native handling on Android

This commit is contained in:
Evan Debenham
2025-09-18 11:58:09 -04:00
parent 5fb32d6f0a
commit 0a2984c11d
2 changed files with 4 additions and 3 deletions

View File

@@ -66,11 +66,12 @@ public class AndroidLauncher extends AndroidApplication {
GdxNativesLoader.load();
FreeType.initFreeType();
} catch (Exception e){
GdxNativesLoader.disableNativesLoading = true;
AndroidMissingNativesHandler.error = e;
Intent intent = new Intent(this, AndroidMissingNativesHandler.class);
startActivity(intent);
finish();
return;
//let initialization continue for a moment so that we can set up things libGDX expects to be set up
}
//there are some things we only need to set up on first launch

View File

@@ -65,7 +65,7 @@ public class AndroidMissingNativesHandler extends Activity {
}
TextView text = new TextView(this);
String message = "ShatteredPD failed to access some of its internal code and cannot start!\n\n" +
String message = "Shattered Pixel Dungeon failed to access some of its internal code and cannot start!\n\n" +
"Try downloading the game from an official source if you haven't already. You can also screenshot this debug info and send it to the developer (Evan@ShatteredPixel.com):";
message += "\n\nPackage: " + getPackageName();
@@ -88,7 +88,7 @@ public class AndroidMissingNativesHandler extends Activity {
text.setTextColor(0xFFFFFFFF);
text.setTypeface(Typeface.createFromAsset(getAssets(), "fonts/pixel_font.ttf"));
text.setGravity(Gravity.CENTER_VERTICAL);
text.setPadding(10, 10, 10, 10);
text.setPadding(20, 20, 20, 20);
setContentView(text);
}