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 @@
package com.skcraft.launcher.creator;

import com.skcraft.launcher.Launcher;
import lombok.NonNull;

import java.io.File;
import java.io.IOException;
import java.net.URL;

public class CreatorLauncher extends Launcher {
public CreatorLauncher(@NonNull File baseDir, @NonNull File configDir) throws IOException {
super(baseDir, configDir);
}

@Override
public URL getPackageRoot() {
return super.getPackagesURL();
}
}

+ 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;
import com.skcraft.launcher.builder.BuilderConfig;
import com.skcraft.launcher.builder.FnPatternList;
import com.skcraft.launcher.creator.Creator;
import com.skcraft.launcher.creator.CreatorLauncher;
import com.skcraft.launcher.creator.model.creator.*;
import com.skcraft.launcher.creator.controller.task.*;
import com.skcraft.launcher.creator.dialog.*;
@@ -94,7 +95,7 @@ public class PackManagerController {
launcherConfigDir.mkdirs();
webRoot.mkdirs();

this.launcher = new Launcher(launcherDir, launcherConfigDir);
this.launcher = new CreatorLauncher(launcherDir, launcherConfigDir);
this.executor = launcher.getExecutor();
this.frame = frame;


+ 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;
* The main entry point for the launcher.
*/
@Log
public final class Launcher {
public class Launcher {

public static final int PROTOCOL_VERSION = 2;


Loading…
Cancel
Save