mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Avoid checking for assets when running from desktop
This commit is contained in:
@@ -13,6 +13,8 @@ import java.util.Enumeration;
|
||||
import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipFile;
|
||||
|
||||
import com.badlogic.gdx.Application.ApplicationType;
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.esotericsoftware.minlog.Log;
|
||||
|
||||
import forge.FThreads;
|
||||
@@ -26,8 +28,8 @@ import forge.util.gui.SOptionPane;
|
||||
public class AssetsDownloader {
|
||||
//if not forge-gui-mobile-dev, check whether assets are up to date
|
||||
public static boolean checkForUpdates(final SplashScreen splashScreen) {
|
||||
//if (Gdx.app.getType() == ApplicationType.Desktop) { return true; }
|
||||
|
||||
if (Gdx.app.getType() == ApplicationType.Desktop) { return true; }
|
||||
|
||||
boolean connectedToInternet = Forge.getNetworkConnection().isConnected();
|
||||
if (connectedToInternet) {
|
||||
/*splashScreen.getProgressBar().setDescription("Checking for updates...");
|
||||
|
||||
Reference in New Issue
Block a user