mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-07 08:39:07 +00:00
Add -no-crc & -dev Arguments To Client
This commit is contained in:
@@ -33,7 +33,7 @@ public class ClientSettings {
|
|||||||
/**
|
/**
|
||||||
* Enables/Disables FileServer CRC Checking For Cache Updates
|
* Enables/Disables FileServer CRC Checking For Cache Updates
|
||||||
*/
|
*/
|
||||||
public static final boolean CHECK_CRC = true;
|
public static boolean CHECK_CRC = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Npc Bits for the Server
|
* The Npc Bits for the Server
|
||||||
|
|||||||
@@ -8,10 +8,7 @@ public final class Main {
|
|||||||
DEAR DEVELOPER!
|
DEAR DEVELOPER!
|
||||||
|
|
||||||
If you want to run the client locally, the easiest way to do that is run the class "Client.java" instead!
|
If you want to run the client locally, the easiest way to do that is run the class "Client.java" instead!
|
||||||
|
|
||||||
If you REALLY want to use this class, add program arguments "-s localhost".
|
If you REALLY want to use this class, add program arguments "-s localhost".
|
||||||
But seriously, Client.java is just a copy-paste of this class and does it locally. Use that instead!
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
@@ -25,6 +22,16 @@ public final class Main {
|
|||||||
case "-ip":
|
case "-ip":
|
||||||
ClientSettings.SERVER_IP = args[++i];
|
ClientSettings.SERVER_IP = args[++i];
|
||||||
break;
|
break;
|
||||||
|
case "-no-crc":
|
||||||
|
case "-no-cache-crc":
|
||||||
|
ClientSettings.CHECK_CRC = false;
|
||||||
|
break;
|
||||||
|
case "-dev" :
|
||||||
|
case "-local":
|
||||||
|
case "-offline":
|
||||||
|
ClientSettings.SERVER_IP = "localhost";
|
||||||
|
ClientSettings.CHECK_CRC = false;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user