runelite-client: add --no-rs option

This commit is contained in:
Adam
2017-05-14 18:35:38 -04:00
parent cb71a096a0
commit 1ce044c308
3 changed files with 8 additions and 2 deletions

View File

@@ -87,6 +87,7 @@ public class RuneLite
OptionParser parser = new OptionParser();
parser.accepts("developer-mode");
parser.accepts("no-rs");
options = parser.parse(args);
runelite = new RuneLite();

View File

@@ -43,7 +43,7 @@ final class ClientPanel extends JPanel
private Applet rs;
public ClientPanel() throws Exception
public ClientPanel(boolean loadRs) throws Exception
{
setSize(new Dimension(PANEL_WIDTH, PANEL_HEIGHT));
setMinimumSize(new Dimension(PANEL_WIDTH, PANEL_HEIGHT));
@@ -51,6 +51,11 @@ final class ClientPanel extends JPanel
setLayout(new BorderLayout());
setBackground(Color.black);
if (!loadRs)
{
return;
}
ClientLoader loader = new ClientLoader();
rs = loader.load();

View File

@@ -84,7 +84,7 @@ public final class ClientUI extends JFrame
container = new JPanel();
container.setLayout(new BorderLayout(0, 0));
panel = new ClientPanel();
panel = new ClientPanel(!RuneLite.getOptions().has("no-rs"));
container.add(panel, BorderLayout.CENTER);
navContainer = new JPanel();