diff --git a/LaunchServer/src/main/resources/pro/gravit/launchserver/defaults/config.cfg b/LaunchServer/src/main/resources/pro/gravit/launchserver/defaults/config.cfg deleted file mode 100644 index c0eaf34b..00000000 --- a/LaunchServer/src/main/resources/pro/gravit/launchserver/defaults/config.cfg +++ /dev/null @@ -1,63 +0,0 @@ -{ - "port": 7240, - "address": "xx.xx", - "bindAddress": "0.0.0.0", - "projectName": "XXX", - "mirrors": [ - "http://mirror.gravitlauncher.ml/" - ], - "binaryName": "Launcher", - "env": "STD", - "authProvider": [ - { - "message": "Настройте authProvider", - "type": "reject" - } - ], - "authHandler": { - "type": "memory" - }, - "permissionsHandler": { - "filename": "permissions.json", - "type": "json" - }, - "textureProvider": { - "skinURL": "http://example.com/skins/%username%.png", - "cloakURL": "http://example.com/cloaks/%username%.png", - "type": "request" - }, - "hwidHandler": { - "type": "accept" - }, - "threadCount": 2, - "threadCoreCount": 0, - "launch4j": { - "enabled": false, - "productName": "GravitLauncher", - "productVer": "4.2.0.0", - "fileDesc": "GravitLauncher 4.2.0", - "fileVer": "4.2.0.0", - "internalName": "Launcher", - "copyright": "© GravitLauncher Team", - "trademarks": "This product is licensed under GPLv3", - "txtFileVersion": "%s, build %d", - "txtProductVersion": "%s, build %d" - }, - "buildPostTransform": { - "enabled": false - }, - "compress": false, - "authRateLimit": 0, - "authRateLimitMilis": 0, - "authRejectString": "Превышен лимит авторизаций", - "whitelistRejectString": "Вас нет в белом списке", - "genMappings": true, - "isUsingWrapper": false, - "isDownloadJava": false, - "isWarningMissArchJava": true, - "enabledProGuard": true, - "updatesNotify": true, - "stripLineNumbers": true, - "deleteTempFiles": true, - "startScript": ".\\start.sh" -} \ No newline at end of file diff --git a/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java b/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java index 9d066ce3..f05bd312 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java +++ b/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java @@ -306,6 +306,7 @@ private static void launch(ClientProfile profile, Params params) throws Throwabl private static Process process = null; private static boolean clientStarted = false; private static Thread writeParamsThread; + public static PlayerProfile playerProfile; @LauncherAPI public static Process launch( @@ -461,6 +462,7 @@ public static void main(String... args) throws Throwable { return; } Launcher.profile = profile; + playerProfile = params.pp; Request.setSession(params.session); checkJVMBitsAndVersion(); Launcher.modulesManager.initModules(); diff --git a/Launcher/src/main/java/pro/gravit/launcher/client/ClientModuleManager.java b/Launcher/src/main/java/pro/gravit/launcher/client/ClientModuleManager.java index cca0d6bb..68f8f60b 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/client/ClientModuleManager.java +++ b/Launcher/src/main/java/pro/gravit/launcher/client/ClientModuleManager.java @@ -7,7 +7,8 @@ import pro.gravit.launcher.managers.SimpleModuleManager; public class ClientModuleManager extends SimpleModuleManager { - public ClientModuleManager(LauncherEngine engine) { + + public ClientModuleManager(LauncherEngine engine) { context = new ClientModuleContext(engine); modules = new ArrayList<>(); } diff --git a/Launcher/src/main/java/pro/gravit/launcher/gui/JSRuntimeProvider.java b/Launcher/src/main/java/pro/gravit/launcher/gui/JSRuntimeProvider.java index 17738305..95e65a6b 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/gui/JSRuntimeProvider.java +++ b/Launcher/src/main/java/pro/gravit/launcher/gui/JSRuntimeProvider.java @@ -62,7 +62,7 @@ public class JSRuntimeProvider implements RuntimeProvider { - private final ScriptEngine engine = CommonHelper.newScriptEngine(); + public final ScriptEngine engine = CommonHelper.newScriptEngine(); private boolean isPreLoaded = false; @LauncherAPI diff --git a/LauncherTest/build.gradle b/LauncherTest/build.gradle index 79de57c8..69d74888 100644 --- a/LauncherTest/build.gradle +++ b/LauncherTest/build.gradle @@ -1,4 +1,4 @@ -apply from: '../scripts/test_support.gradle' +apply from: 'test_support.gradle' dependencies { compile project(':LaunchServer') diff --git a/scripts/test_support.gradle b/LauncherTest/test_support.gradle similarity index 100% rename from scripts/test_support.gradle rename to LauncherTest/test_support.gradle diff --git a/modules b/modules index c5986c83..51bae9ce 160000 --- a/modules +++ b/modules @@ -1 +1 @@ -Subproject commit c5986c83c7d9a2c988a4846efc0ec99c4b8d0934 +Subproject commit 51bae9ce1d287ce453c4f7bfb5bb7bf463ec6af8 diff --git a/scripts/launch_module.gradle b/scripts/launch_module.gradle deleted file mode 100644 index 8f742414..00000000 --- a/scripts/launch_module.gradle +++ /dev/null @@ -1,8 +0,0 @@ -dependencies { - compileOnly project(':Launcher') -} - -jar { - from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } } -} - diff --git a/scripts/lsrv_module.gradle b/scripts/lsrv_module.gradle deleted file mode 100644 index 3ca31604..00000000 --- a/scripts/lsrv_module.gradle +++ /dev/null @@ -1,8 +0,0 @@ -dependencies { - compileOnly project(':LaunchServer') -} - -jar { - from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } } -} - diff --git a/scripts/srvwrap_module.gradle b/scripts/srvwrap_module.gradle deleted file mode 100644 index 29e568c3..00000000 --- a/scripts/srvwrap_module.gradle +++ /dev/null @@ -1,8 +0,0 @@ -dependencies { - compileOnly project(':ServerWrapper') -} - -jar { - from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } } -} -