Merge branch 'master' into 'master'

Revert path for Android

See merge request core-developers/forge!6371
This commit is contained in:
Anthony Calosa
2022-03-08 10:04:37 +00:00
3 changed files with 5 additions and 3 deletions

View File

@@ -339,7 +339,7 @@ public class Forge implements ApplicationListener {
protected void afterDbLoaded() {
//init here to fix crash if the assets are missing
transitionTexture = new Texture(Gdx.files.classpath("fallback_skin").child("transition.png"));
transitionTexture = new Texture(GuiBase.isAndroid() ? Gdx.files.internal("fallback_skin").child("transition.png") : Gdx.files.classpath("fallback_skin").child("transition.png"));
destroyThis = false; //Allow back()

View File

@@ -108,7 +108,7 @@ public class FSkin {
{
if (!dir.exists() || !dir.isDirectory()) {
//if skins directory doesn't exist, point to internal assets/skin directory instead for the sake of the splash screen
preferredDir = Gdx.files.classpath("fallback_skin");
preferredDir = GuiBase.isAndroid() ? Gdx.files.internal("fallback_skin") : Gdx.files.classpath("fallback_skin");
}
else {
if (splashScreen != null) {

View File

@@ -97,7 +97,9 @@ public class SplashScreen extends FContainer {
private float progress = 0;
private boolean finished, openAdventure;
//for transition image only...
TextureRegion transition_bg = new TextureRegion(new Texture(Gdx.files.classpath("fallback_skin").child("title_bg_lq.png")));
TextureRegion transition_bg = new TextureRegion(new Texture(GuiBase.isAndroid()
? Gdx.files.internal("fallback_skin").child("title_bg_lq.png")
: Gdx.files.classpath("fallback_skin").child("title_bg_lq.png")));
public void drawBackground(Graphics g) {
float percentage = progress / DURATION;