mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
Очень странный Баг с NPE
This commit is contained in:
parent
b175388465
commit
637867dbc8
5 changed files with 7 additions and 6 deletions
|
@ -123,8 +123,7 @@ public JARLauncherBinary(LaunchServer server) throws IOException {
|
|||
runtimeDir = server.dir.resolve(Launcher.RUNTIME_DIR);
|
||||
guardDir = server.dir.resolve("guard");
|
||||
initScriptFile = runtimeDir.resolve(Launcher.INIT_SCRIPT_FILE);
|
||||
obfJar = server.config.buildPostTransform.enabled ? server.dir.resolve(server.config.binaryName + "-obf.jar")
|
||||
: syncBinaryFile;
|
||||
obfJar = syncBinaryFile;
|
||||
tryUnpackRuntime();
|
||||
}
|
||||
|
||||
|
@ -179,8 +178,8 @@ public void build() throws IOException {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (server.config.buildPostTransform.enabled)
|
||||
transformedBuild();
|
||||
//if (server.config.buildPostTransform.enabled)
|
||||
// transformedBuild();
|
||||
}
|
||||
|
||||
private void transformedBuild() throws IOException {
|
||||
|
|
|
@ -169,6 +169,7 @@ var settingsOverlay = {
|
|||
settingsOverlay.dirLabel.setText(IOHelper.toString(settings.updatesDir));
|
||||
}
|
||||
};
|
||||
LogHelper.debug("Dir: %s", DirBridge.dir);
|
||||
var settings = new settingsClass;
|
||||
/* ====================== CLI PARAMS ===================== */
|
||||
var cliParams = {
|
||||
|
|
|
@ -2,7 +2,7 @@ var Launcher = LauncherClass.static;
|
|||
var LauncherConfig = LauncherConfigClass.static;
|
||||
var HTTPRequest = HTTPRequestClass.static;
|
||||
var DirBridge = DirBridgeClass.static;
|
||||
var FunctionalBridge = FunctionalBridgeClass.class;
|
||||
var FunctionalBridge = FunctionalBridgeClass.static;
|
||||
|
||||
// Hasher class API imports
|
||||
var PlayerProfile = PlayerProfileClass.static;
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
import javafx.application.Application;
|
||||
import ru.gravit.launcher.LauncherAPI;
|
||||
|
||||
@SuppressWarnings("AbstractClassNeverImplemented")
|
||||
public abstract class JSApplication extends Application {
|
||||
|
|
|
@ -204,6 +204,7 @@ private void setScriptBindings() {
|
|||
|
||||
@LauncherAPI
|
||||
public void start(String... args) throws Throwable {
|
||||
LogHelper.debug("%d", LauncherSettings.settingsMagic);
|
||||
Launcher.modulesManager = new ClientModuleManager(this);
|
||||
LauncherConfig.getAutogenConfig().initModules(); //INIT
|
||||
Launcher.modulesManager.preInitModules();
|
||||
|
@ -216,6 +217,7 @@ public void start(String... args) throws Throwable {
|
|||
CommonHelper.newThread("FX Task Worker", true, FunctionalBridge.worker);
|
||||
loadScript(Launcher.API_SCRIPT_FILE);
|
||||
loadScript(Launcher.CONFIG_SCRIPT_FILE);
|
||||
LogHelper.debug("Dir: %s", DirBridge.dir);
|
||||
loadScript(Launcher.INIT_SCRIPT_FILE);
|
||||
LogHelper.info("Invoking start() function");
|
||||
Invocable invoker = (Invocable) engine;
|
||||
|
|
Loading…
Reference in a new issue