Merge pull request #3613 from Abextm/assert-launcher
runelite-client: Allow developer-tools to run from the launcher
This commit is contained in:
@@ -153,7 +153,7 @@ public class RuneLite
|
|||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (RuneLite.getOptions().has("developer-mode"))
|
if (RuneLite.getOptions().has("developer-mode") && RuneLiteProperties.getLauncherVersion() == null)
|
||||||
{
|
{
|
||||||
boolean assertions = false;
|
boolean assertions = false;
|
||||||
assert assertions = true;
|
assert assertions = true;
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ package net.runelite.client;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
import javax.annotation.Nullable;
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
import javax.inject.Singleton;
|
import javax.inject.Singleton;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
@@ -96,7 +97,8 @@ public class RuneLiteProperties
|
|||||||
return properties.getProperty(PATREON_LINK);
|
return properties.getProperty(PATREON_LINK);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getLauncherVersion()
|
@Nullable
|
||||||
|
public static String getLauncherVersion()
|
||||||
{
|
{
|
||||||
return System.getProperty(LAUNCHER_VERSION_PROPERTY);
|
return System.getProperty(LAUNCHER_VERSION_PROPERTY);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ public class InfoPanel extends PluginPanel
|
|||||||
revision.setText(htmlLabel("Oldschool revision: ", engineVer));
|
revision.setText(htmlLabel("Oldschool revision: ", engineVer));
|
||||||
|
|
||||||
JLabel launcher = new JLabel(htmlLabel("Launcher version: ", MoreObjects
|
JLabel launcher = new JLabel(htmlLabel("Launcher version: ", MoreObjects
|
||||||
.firstNonNull(runeLiteProperties.getLauncherVersion(), "Unknown")));
|
.firstNonNull(RuneLiteProperties.getLauncherVersion(), "Unknown")));
|
||||||
launcher.setFont(smallFont);
|
launcher.setFont(smallFont);
|
||||||
|
|
||||||
loggedLabel.setForeground(ColorScheme.LIGHT_GRAY_COLOR);
|
loggedLabel.setForeground(ColorScheme.LIGHT_GRAY_COLOR);
|
||||||
|
|||||||
Reference in New Issue
Block a user