diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-01-09 01:22:34 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-01-12 21:57:34 +0100 |
commit | fca4441229808891f460d5fbc4affd51e8896aa5 (patch) | |
tree | 842b0e559c233399b0994697ff87321d93603121 /depends/launcher/net | |
parent | c51a993ff741074ac88bbc901ebfad9da636eeaa (diff) | |
download | MultiMC-fca4441229808891f460d5fbc4affd51e8896aa5.tar MultiMC-fca4441229808891f460d5fbc4affd51e8896aa5.tar.gz MultiMC-fca4441229808891f460d5fbc4affd51e8896aa5.tar.lz MultiMC-fca4441229808891f460d5fbc4affd51e8896aa5.tar.xz MultiMC-fca4441229808891f460d5fbc4affd51e8896aa5.zip |
Replace old launcher part with a shiny new one. No more garbage on the command line.
Diffstat (limited to 'depends/launcher/net')
-rw-r--r-- | depends/launcher/net/minecraft/Launcher.java | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/depends/launcher/net/minecraft/Launcher.java b/depends/launcher/net/minecraft/Launcher.java index 8cef35ad..c9b137e1 100644 --- a/depends/launcher/net/minecraft/Launcher.java +++ b/depends/launcher/net/minecraft/Launcher.java @@ -1,18 +1,18 @@ -// -// Copyright 2012 MultiMC Contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright 2012-2014 MultiMC Contributors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package net.minecraft; @@ -38,7 +38,7 @@ public class Launcher extends Applet implements AppletStub this.setLayout(new BorderLayout()); this.add(applet, "Center"); - this.wrappedApplet = applet; + this.wrappedApplet = applet; this.documentBase = documentBase; } @@ -46,17 +46,17 @@ public class Launcher extends Applet implements AppletStub { params.put(name, value); } - + public void replace(Applet applet) { this.wrappedApplet = applet; - + applet.setStub(this); applet.setSize(getWidth(), getHeight()); - + this.setLayout(new BorderLayout()); this.add(applet, "Center"); - + applet.init(); active = true; applet.start(); @@ -99,7 +99,7 @@ public class Launcher extends Applet implements AppletStub { wrappedApplet.resize(d); } - + @Override public void init() { @@ -127,7 +127,7 @@ public class Launcher extends Applet implements AppletStub { wrappedApplet.destroy(); } - + @Override public URL getCodeBase() { return wrappedApplet.getCodeBase(); |