Merge pull request #3613 from Abextm/assert-launcher

runelite-client: Allow developer-tools to run from the launcher
This commit is contained in:
Adam
2018-06-06 20:56:43 -04:00
committed by GitHub
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);