mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Make it easier to test downloading separate asset files
This commit is contained in:
@@ -5,12 +5,20 @@ import com.badlogic.gdx.backends.lwjgl.LwjglClipboard;
|
||||
|
||||
import forge.Forge;
|
||||
import forge.interfaces.INetworkConnection;
|
||||
import forge.util.FileUtil;
|
||||
import forge.util.Utils;
|
||||
|
||||
public class Main {
|
||||
private static final boolean SHARE_DESKTOP_ASSETS = true;
|
||||
|
||||
public static void main(String[] args) {
|
||||
String assetsDir = SHARE_DESKTOP_ASSETS ? "../forge-gui/" : "testAssets/";
|
||||
if (!SHARE_DESKTOP_ASSETS) {
|
||||
FileUtil.ensureDirectoryExists(assetsDir);
|
||||
}
|
||||
|
||||
new LwjglApplication(Forge.getApp(new LwjglClipboard(), new DesktopNetworkConnection(),
|
||||
"../forge-gui/", null), "Forge", Utils.DEV_SCREEN_WIDTH, Utils.DEV_SCREEN_HEIGHT);
|
||||
assetsDir, null), "Forge", Utils.DEV_SCREEN_WIDTH, Utils.DEV_SCREEN_HEIGHT);
|
||||
}
|
||||
|
||||
private static class DesktopNetworkConnection implements INetworkConnection {
|
||||
|
||||
Reference in New Issue
Block a user