mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08: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.ZipEntry;
|
||||||
import java.util.zip.ZipFile;
|
import java.util.zip.ZipFile;
|
||||||
|
|
||||||
|
import com.badlogic.gdx.Application.ApplicationType;
|
||||||
|
import com.badlogic.gdx.Gdx;
|
||||||
import com.esotericsoftware.minlog.Log;
|
import com.esotericsoftware.minlog.Log;
|
||||||
|
|
||||||
import forge.FThreads;
|
import forge.FThreads;
|
||||||
@@ -26,7 +28,7 @@ import forge.util.gui.SOptionPane;
|
|||||||
public class AssetsDownloader {
|
public class AssetsDownloader {
|
||||||
//if not forge-gui-mobile-dev, check whether assets are up to date
|
//if not forge-gui-mobile-dev, check whether assets are up to date
|
||||||
public static boolean checkForUpdates(final SplashScreen splashScreen) {
|
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();
|
boolean connectedToInternet = Forge.getNetworkConnection().isConnected();
|
||||||
if (connectedToInternet) {
|
if (connectedToInternet) {
|
||||||
|
|||||||
Reference in New Issue
Block a user