finish IPbased retro support for Windows

This commit is contained in:
sirjonasxx 2020-04-25 04:44:21 +02:00
parent a8d70f16a1
commit 6afc65a22f
4 changed files with 6 additions and 3 deletions

View File

@ -118,7 +118,7 @@ public class HConnection {
private static volatile ConnectionInfoOverrider connectionInfoOverrider;
public static volatile boolean DECRYPTPACKETS = true;
public static volatile boolean DEBUG = true;
public static volatile boolean DEBUG = false;
private static final HostReplacer hostsReplacer = HostReplacerFactory.get();
private volatile boolean hostRedirected = false;

View File

@ -80,10 +80,13 @@ public class WindowsHabboClient extends HabboClient {
}
String g_winmem = new File(this.getClass().getProtectionDomain().getCodeSource().getLocation().toURI()).getParent() + "\\G-Mem.exe";
String clientHost = hConnection.isRawIpMode() ? "null" : hConnection.getClientHost();
String clientPort = hConnection.isRawIpMode() ? "null" : hConnection.getClientPort() + "";
if (!useCache)
pb = new ProcessBuilder(g_winmem, hConnection.getClientHost() , Integer.toString(hConnection.getClientPort()));
pb = new ProcessBuilder(g_winmem, clientHost , clientPort);
else
pb = new ProcessBuilder(g_winmem, hConnection.getClientHost() , Integer.toString(hConnection.getClientPort()), "-c" + joiner.toString());
pb = new ProcessBuilder(g_winmem, clientHost , clientPort, "-c" + joiner.toString());
Process p = pb.start();