From 7f487726632236b3038563dd8184e0b78c1fa326 Mon Sep 17 00:00:00 2001 From: Gravit Date: Fri, 1 May 2020 07:56:58 +0700 Subject: [PATCH] =?UTF-8?q?[ANY]=20=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pro/gravit/launcher/LauncherEngine.java | 6 ++---- .../client/ClientLauncherCoreModule.java | 17 +++++++++++++++++ modules | 2 +- 3 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncherCoreModule.java diff --git a/Launcher/src/main/java/pro/gravit/launcher/LauncherEngine.java b/Launcher/src/main/java/pro/gravit/launcher/LauncherEngine.java index 9e7232ed..1b3bcdf3 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/LauncherEngine.java +++ b/Launcher/src/main/java/pro/gravit/launcher/LauncherEngine.java @@ -1,9 +1,6 @@ package pro.gravit.launcher; -import pro.gravit.launcher.client.ClientLauncherEntryPoint; -import pro.gravit.launcher.client.ClientLauncherProcess; -import pro.gravit.launcher.client.ClientModuleManager; -import pro.gravit.launcher.client.DirBridge; +import pro.gravit.launcher.client.*; import pro.gravit.launcher.client.events.ClientEngineInitPhase; import pro.gravit.launcher.client.events.ClientExitPhase; import pro.gravit.launcher.client.events.ClientPreGuiPhase; @@ -93,6 +90,7 @@ public static void main(String... args) throws Throwable { LauncherEngine.checkClass(LauncherAgent.class); LauncherEngine.checkClass(ClientLauncherEntryPoint.class); LauncherEngine.modulesManager = new ClientModuleManager(); + LauncherEngine.modulesManager.loadModule(new ClientLauncherCoreModule()); LauncherConfig.initModules(LauncherEngine.modulesManager); LauncherEngine.modulesManager.initModules(null); // Start Launcher diff --git a/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncherCoreModule.java b/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncherCoreModule.java new file mode 100644 index 00000000..21e3c8af --- /dev/null +++ b/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncherCoreModule.java @@ -0,0 +1,17 @@ +package pro.gravit.launcher.client; + +import pro.gravit.launcher.modules.LauncherInitContext; +import pro.gravit.launcher.modules.LauncherModule; +import pro.gravit.launcher.modules.LauncherModuleInfo; +import pro.gravit.utils.Version; + +public class ClientLauncherCoreModule extends LauncherModule { + public ClientLauncherCoreModule() { + super(new LauncherModuleInfo("ClientLauncherCore", Version.getVersion())); + } + + @Override + public void init(LauncherInitContext initContext) { + + } +} diff --git a/modules b/modules index 20f142a8..4cb71b1c 160000 --- a/modules +++ b/modules @@ -1 +1 @@ -Subproject commit 20f142a845b37a231479bfbdec30ae472d18d29d +Subproject commit 4cb71b1c0a2b4a4b066c680979775c2dbf1a244e