runelite-client: Allow developer-tools to run from the launcher

Packr doesn't let us add jvm arguments from the command line, so this disables the assertion check if the launcher version is present
This commit is contained in:
Max Weber
2018-06-04 04:53:30 -06:00
parent 3c82663ae9
commit 44d756a26b
3 changed files with 5 additions and 3 deletions

View File

@@ -153,7 +153,7 @@ public class RuneLite
System.exit(0);
}
if (RuneLite.getOptions().has("developer-mode"))
if (RuneLite.getOptions().has("developer-mode") && RuneLiteProperties.getLauncherVersion() == null)
{
boolean assertions = false;
assert assertions = true;

View File

@@ -27,6 +27,7 @@ package net.runelite.client;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import javax.annotation.Nullable;
import javax.inject.Inject;
import javax.inject.Singleton;
import lombok.extern.slf4j.Slf4j;
@@ -96,7 +97,8 @@ public class RuneLiteProperties
return properties.getProperty(PATREON_LINK);
}
public String getLauncherVersion()
@Nullable
public static String getLauncherVersion()
{
return System.getProperty(LAUNCHER_VERSION_PROPERTY);
}

View File

@@ -135,7 +135,7 @@ public class InfoPanel extends PluginPanel
revision.setText(htmlLabel("Oldschool revision: ", engineVer));
JLabel launcher = new JLabel(htmlLabel("Launcher version: ", MoreObjects
.firstNonNull(runeLiteProperties.getLauncherVersion(), "Unknown")));
.firstNonNull(RuneLiteProperties.getLauncherVersion(), "Unknown")));
launcher.setFont(smallFont);
loggedLabel.setForeground(ColorScheme.LIGHT_GRAY_COLOR);