forked from 2009Scape/Server
Rebase with upstream
This commit is contained in:
commit
101b8314c9
2889 changed files with 481914 additions and 0 deletions
44
09HDscape-client/src/org/runite/GameLaunch.java
Normal file
44
09HDscape-client/src/org/runite/GameLaunch.java
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
package org.runite;
|
||||
|
||||
import org.runite.jagex.GameShell;
|
||||
|
||||
/**
|
||||
* Handles the launching of our Game Client.
|
||||
* @author Keldagrim Development Team
|
||||
*
|
||||
*/
|
||||
public class GameLaunch {
|
||||
|
||||
/**
|
||||
* The game settings.
|
||||
*/
|
||||
public static GameSetting SETTINGS = new GameSetting("RuneScape", Configurations.LOCAL_SERVER ? "127.0.0.1" : "frostblades.org", 1, "live", false, false);
|
||||
|
||||
/**
|
||||
* The main method.
|
||||
* @param args the arguments casted on runtime.
|
||||
*/
|
||||
public static void main(String[]args) {
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
String[] cmd = args[i].split("=");
|
||||
switch (cmd[0]) {
|
||||
case "ip":
|
||||
SETTINGS.setIp(cmd[1]);
|
||||
break;
|
||||
case "world":
|
||||
SETTINGS.setWorld(Integer.parseInt(cmd[1]));
|
||||
break;
|
||||
}
|
||||
}
|
||||
launch(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Launches the client in a determined mode.
|
||||
* @param swiftkit If we're launching swift kit.
|
||||
*/
|
||||
public static void launch(boolean swiftkit) {
|
||||
GameShell.launchDesktop();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue