Browse Source

Patched creator tools temporarily

master
JellySquid 3 years ago
parent
commit
fdb5925fdb

+ 19
- 0
creator-tools/src/main/java/com/skcraft/launcher/creator/CreatorLauncher.java View File

@@ -0,0 +1,19 @@
1
+package com.skcraft.launcher.creator;
2
+
3
+import com.skcraft.launcher.Launcher;
4
+import lombok.NonNull;
5
+
6
+import java.io.File;
7
+import java.io.IOException;
8
+import java.net.URL;
9
+
10
+public class CreatorLauncher extends Launcher {
11
+	public CreatorLauncher(@NonNull File baseDir, @NonNull File configDir) throws IOException {
12
+		super(baseDir, configDir);
13
+	}
14
+
15
+	@Override
16
+	public URL getPackageRoot() {
17
+		return super.getPackagesURL();
18
+	}
19
+}

+ 2
- 1
creator-tools/src/main/java/com/skcraft/launcher/creator/controller/PackManagerController.java View File

@@ -21,6 +21,7 @@ import com.skcraft.launcher.auth.Session;
21 21
 import com.skcraft.launcher.builder.BuilderConfig;
22 22
 import com.skcraft.launcher.builder.FnPatternList;
23 23
 import com.skcraft.launcher.creator.Creator;
24
+import com.skcraft.launcher.creator.CreatorLauncher;
24 25
 import com.skcraft.launcher.creator.model.creator.*;
25 26
 import com.skcraft.launcher.creator.controller.task.*;
26 27
 import com.skcraft.launcher.creator.dialog.*;
@@ -94,7 +95,7 @@ public class PackManagerController {
94 95
         launcherConfigDir.mkdirs();
95 96
         webRoot.mkdirs();
96 97
 
97
-        this.launcher = new Launcher(launcherDir, launcherConfigDir);
98
+        this.launcher = new CreatorLauncher(launcherDir, launcherConfigDir);
98 99
         this.executor = launcher.getExecutor();
99 100
         this.frame = frame;
100 101
 

+ 1
- 1
launcher/src/main/java/com/skcraft/launcher/Launcher.java View File

@@ -50,7 +50,7 @@ import static com.skcraft.launcher.util.SharedLocale.tr;
50 50
  * The main entry point for the launcher.
51 51
  */
52 52
 @Log
53
-public final class Launcher {
53
+public class Launcher {
54 54
 
55 55
     public static final int PROTOCOL_VERSION = 2;
56 56
 

Loading…
Cancel
Save