mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Merge branch 'master' into 'master'
Revert path for Android See merge request core-developers/forge!6371
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user