mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 17:00:52 +01:00
finish IPbased retro support for Windows
This commit is contained in:
parent
a8d70f16a1
commit
6afc65a22f
@ -118,7 +118,7 @@ public class HConnection {
|
|||||||
|
|
||||||
private static volatile ConnectionInfoOverrider connectionInfoOverrider;
|
private static volatile ConnectionInfoOverrider connectionInfoOverrider;
|
||||||
public static volatile boolean DECRYPTPACKETS = true;
|
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 static final HostReplacer hostsReplacer = HostReplacerFactory.get();
|
||||||
|
|
||||||
private volatile boolean hostRedirected = false;
|
private volatile boolean hostRedirected = false;
|
||||||
|
@ -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 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)
|
if (!useCache)
|
||||||
pb = new ProcessBuilder(g_winmem, hConnection.getClientHost() , Integer.toString(hConnection.getClientPort()));
|
pb = new ProcessBuilder(g_winmem, clientHost , clientPort);
|
||||||
else
|
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();
|
Process p = pb.start();
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user