mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-13 18:10:20 -07:00
Started moving around static methods/fields
This commit is contained in:
parent
bed128bd19
commit
6ba1f2f808
305 changed files with 5027 additions and 5075 deletions
|
|
@ -14,6 +14,59 @@ import org.openrs2.deob.annotation.Pc;
|
|||
@OriginalClass("client!client")
|
||||
public final class client extends GameShell {
|
||||
|
||||
@OriginalMember(owner = "client!dk", name = "j", descriptor = "[Lclient!en;")
|
||||
public static final BufferedFile[] cacheIndexes = new BufferedFile[28];
|
||||
@OriginalMember(owner = "client!sg", name = "k", descriptor = "Lclient!ve;")
|
||||
public static Js5 js5Archive23;
|
||||
@OriginalMember(owner = "client!pb", name = "Q", descriptor = "I")
|
||||
public static int worldListId = 1;
|
||||
@OriginalMember(owner = "client!gj", name = "b", descriptor = "I")
|
||||
public static int modeWhere = 0;
|
||||
@OriginalMember(owner = "client!gg", name = "U", descriptor = "I")
|
||||
public static int modeWhat = 0;
|
||||
@OriginalMember(owner = "client!ud", name = "S", descriptor = "Z")
|
||||
public static boolean advertSuppressed = false;
|
||||
@OriginalMember(owner = "client!lb", name = "v", descriptor = "I")
|
||||
public static int language = 0;
|
||||
@OriginalMember(owner = "client!t", name = "x", descriptor = "Z")
|
||||
public static boolean javaScript = false;
|
||||
@OriginalMember(owner = "client!lk", name = "U", descriptor = "Z")
|
||||
public static boolean objectTag = false;
|
||||
@OriginalMember(owner = "client!vk", name = "n", descriptor = "I")
|
||||
public static int game = 0;
|
||||
@OriginalMember(owner = "client!wk", name = "w", descriptor = "I")
|
||||
public static int country;
|
||||
@OriginalMember(owner = "client!od", name = "n", descriptor = "Z")
|
||||
public static boolean haveIe6 = false;
|
||||
@OriginalMember(owner = "client!qi", name = "r", descriptor = "I")
|
||||
public static int affiliate = 0;
|
||||
@OriginalMember(owner = "client!dk", name = "h", descriptor = "Lclient!na;")
|
||||
public static JagString settings = null;
|
||||
@OriginalMember(owner = "client!rh", name = "j", descriptor = "Lclient!client;")
|
||||
public static client instance;
|
||||
@OriginalMember(owner = "client!ba", name = "D", descriptor = "Lclient!vh;")
|
||||
public static AudioChannel musicChannel;
|
||||
@OriginalMember(owner = "client!fk", name = "q", descriptor = "Lclient!uc;")
|
||||
public static MouseWheel mouseWheel;
|
||||
@OriginalMember(owner = "client!lh", name = "s", descriptor = "Lclient!vh;")
|
||||
public static AudioChannel soundChannel;
|
||||
@OriginalMember(owner = "client!id", name = "l", descriptor = "Lclient!jb;")
|
||||
public static Js5NetQueue js5NetQueue;
|
||||
@OriginalMember(owner = "client!gm", name = "T", descriptor = "Lclient!k;")
|
||||
public static Js5CacheQueue js5CacheQueue;
|
||||
@OriginalMember(owner = "client!nj", name = "f", descriptor = "Lclient!en;")
|
||||
public static BufferedFile cacheData;
|
||||
@OriginalMember(owner = "client!pf", name = "f", descriptor = "Lclient!en;")
|
||||
public static BufferedFile cacheMasterIndex;
|
||||
@OriginalMember(owner = "client!jg", name = "c", descriptor = "Lclient!en;")
|
||||
public static BufferedFile uid;
|
||||
@OriginalMember(owner = "client!tl", name = "d", descriptor = "I")
|
||||
public static int gameState = 0;
|
||||
@OriginalMember(owner = "client!vd", name = "w", descriptor = "Lclient!vk;")
|
||||
public static FrameBuffer frameBuffer;
|
||||
@OriginalMember(owner = "client!id", name = "f", descriptor = "Z")
|
||||
public static boolean clean = false;
|
||||
|
||||
@OriginalMember(owner = "client!client", name = "main", descriptor = "([Ljava/lang/String;)V")
|
||||
public static void main(@OriginalArg(0) String[] arg0) {
|
||||
try {
|
||||
|
|
@ -26,67 +79,73 @@ public final class client extends GameShell {
|
|||
// Static131.method2577("argument count");
|
||||
}
|
||||
@Pc(15) int local15 = -1;
|
||||
Static187.worldListId = Integer.parseInt(arg0[0]);
|
||||
Static83.modeWhere = 2;
|
||||
worldListId = Integer.parseInt(arg0[0]);
|
||||
modeWhere = 2;
|
||||
if (arg0[1].equals("live")) {
|
||||
Static81.modeWhat = 0;
|
||||
modeWhat = 0;
|
||||
} else if (arg0[1].equals("rc")) {
|
||||
Static81.modeWhat = 1;
|
||||
modeWhat = 1;
|
||||
} else if (arg0[1].equals("wip")) {
|
||||
Static81.modeWhat = 2;
|
||||
modeWhat = 2;
|
||||
} else {
|
||||
Static131.method2577("modewhat");
|
||||
printUsage("modewhat");
|
||||
}
|
||||
Static249.advertSuppressed = false;
|
||||
advertSuppressed = false;
|
||||
try {
|
||||
@Pc(63) byte[] local63 = arg0[2].getBytes("ISO-8859-1");
|
||||
local15 = Static101.method2053(Static10.decodeString(local63, local63.length, 0));
|
||||
} catch (@Pc(74) Exception local74) {
|
||||
}
|
||||
if (local15 != -1) {
|
||||
Static141.language = local15;
|
||||
language = local15;
|
||||
} else if (arg0[2].equals("english")) {
|
||||
Static141.language = 0;
|
||||
language = 0;
|
||||
} else if (arg0[2].equals("german")) {
|
||||
Static141.language = 1;
|
||||
language = 1;
|
||||
} else {
|
||||
Static131.method2577("language");
|
||||
printUsage("language");
|
||||
}
|
||||
Static3.setLanguage(Static141.language);
|
||||
Static233.javaScript = false;
|
||||
Static150.objectTag = false;
|
||||
LocalizedText.setLanguage(language);
|
||||
javaScript = false;
|
||||
objectTag = false;
|
||||
if (arg0[3].equals("game0")) {
|
||||
Static266.game = 0;
|
||||
game = 0;
|
||||
} else if (arg0[3].equals("game1")) {
|
||||
Static266.game = 1;
|
||||
game = 1;
|
||||
} else {
|
||||
Static131.method2577("game");
|
||||
printUsage("game");
|
||||
}
|
||||
Static279.country = 0;
|
||||
Static178.haveIe6 = false;
|
||||
Static204.affiliate = 0;
|
||||
Static47.settings = Static186.EMPTY;
|
||||
country = 0;
|
||||
haveIe6 = false;
|
||||
affiliate = 0;
|
||||
settings = JagString.EMPTY;
|
||||
@Pc(146) client c = new client();
|
||||
Static215.instance = c;
|
||||
c.startApplication(Static81.modeWhat + 32, "runescape");
|
||||
instance = c;
|
||||
c.startApplication(modeWhat + 32, "runescape");
|
||||
GameShell.frame.setLocation(40, 40);
|
||||
} catch (@Pc(167) Exception ex) {
|
||||
Static89.report(null, ex);
|
||||
TracingException.report(null, ex);
|
||||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!kd", name = "a", descriptor = "(Ljava/lang/String;B)V")
|
||||
public static void printUsage(@OriginalArg(0) String arg0) {
|
||||
System.out.println("Bad " + arg0 + ", Usage: worldid, <live/rc/wip>, <english/german>, <game0/game1>");
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!client", name = "f", descriptor = "(I)V")
|
||||
@Override
|
||||
protected final void mainRedraw() {
|
||||
if (Static244.gameState == 1000) {
|
||||
if (gameState == 1000) {
|
||||
return;
|
||||
}
|
||||
@Pc(15) boolean local15 = Static138.method2699();
|
||||
if (local15 && Static144.aBoolean173 && Static11.musicChannel != null) {
|
||||
Static11.musicChannel.method3570();
|
||||
@Pc(15) boolean local15 = MidiPlayer.method2699();
|
||||
if (local15 && MidiPlayer.jingle && musicChannel != null) {
|
||||
musicChannel.method3570();
|
||||
}
|
||||
if ((Static244.gameState == 30 || Static244.gameState == 10) && (GameShell.replaceCanvas || Static97.aLong89 != 0L && Static97.aLong89 < MonotonicClock.currentTimeMillis())) {
|
||||
Static241.setWindowMode(GameShell.replaceCanvas, Static144.getWindowMode(), Static114.anInt5831, Static22.anInt729);
|
||||
if ((gameState == 30 || gameState == 10) && (GameShell.replaceCanvas || Static97.aLong89 != 0L && Static97.aLong89 < MonotonicClock.currentTimeMillis())) {
|
||||
Static241.setWindowMode(GameShell.replaceCanvas, Static144.getWindowMode(), Preferences.fullScreenWidth, Preferences.fullScreenHeight);
|
||||
}
|
||||
@Pc(80) int local80;
|
||||
@Pc(84) int local84;
|
||||
|
|
@ -111,8 +170,8 @@ public final class client extends GameShell {
|
|||
Static97.aLong89 = MonotonicClock.currentTimeMillis() + 500L;
|
||||
}
|
||||
}
|
||||
if (GameShell.fullScreenFrame != null && !GameShell.focus && (Static244.gameState == 30 || Static244.gameState == 10)) {
|
||||
Static241.setWindowMode(false, Static214.windowMode, -1, -1);
|
||||
if (GameShell.fullScreenFrame != null && !GameShell.focus && (gameState == 30 || gameState == 10)) {
|
||||
Static241.setWindowMode(false, Preferences.favoriteWorlds, -1, -1);
|
||||
}
|
||||
@Pc(158) boolean local158 = false;
|
||||
if (GameShell.fullRedraw) {
|
||||
|
|
@ -127,70 +186,70 @@ public final class client extends GameShell {
|
|||
Static186.aBooleanArray100[local80] = true;
|
||||
}
|
||||
}
|
||||
if (Static244.gameState == 0) {
|
||||
Static13.render(null, local158, Static126.mainLoadSecondaryText, Static199.mainLoadPercentage);
|
||||
} else if (Static244.gameState == 5) {
|
||||
Static182.render(false, Static280.aClass3_Sub2_Sub9_43);
|
||||
} else if (Static244.gameState == 10) {
|
||||
if (gameState == 0) {
|
||||
LoadingBarAwt.render(null, local158, Static126.mainLoadSecondaryText, Static199.mainLoadPercentage);
|
||||
} else if (gameState == 5) {
|
||||
LoadingBar.render(false, Fonts.b12Full);
|
||||
} else if (gameState == 10) {
|
||||
Static126.method2460();
|
||||
} else if (Static244.gameState == 25 || Static244.gameState == 28) {
|
||||
} else if (gameState == 25 || gameState == 28) {
|
||||
if (Static233.loadingScreenState == 1) {
|
||||
if (Static230.anInt5150 < Static175.mapFilesMissingCount) {
|
||||
Static230.anInt5150 = Static175.mapFilesMissingCount;
|
||||
}
|
||||
local80 = (Static230.anInt5150 - Static175.mapFilesMissingCount) * 50 / Static230.anInt5150;
|
||||
Static114.drawTextOnScreen(false, Static34.concatenate(new JagString[] { LocalizedText.LOADING, Static229.aClass100_974, Static123.parseInt(local80), Static14.aClass100_80 }));
|
||||
Static114.drawTextOnScreen(false, JagString.concatenate(new JagString[] { LocalizedText.LOADING, Static229.aClass100_974, Static123.parseInt(local80), Static14.aClass100_80 }));
|
||||
} else if (Static233.loadingScreenState == 2) {
|
||||
if (Static38.anInt1196 < Static271.anInt5804) {
|
||||
Static38.anInt1196 = Static271.anInt5804;
|
||||
}
|
||||
local80 = (Static38.anInt1196 - Static271.anInt5804) * 50 / Static38.anInt1196 + 50;
|
||||
Static114.drawTextOnScreen(false, Static34.concatenate(new JagString[] { LocalizedText.LOADING, Static229.aClass100_974, Static123.parseInt(local80), Static14.aClass100_80 }));
|
||||
Static114.drawTextOnScreen(false, JagString.concatenate(new JagString[] { LocalizedText.LOADING, Static229.aClass100_974, Static123.parseInt(local80), Static14.aClass100_80 }));
|
||||
} else {
|
||||
Static114.drawTextOnScreen(false, LocalizedText.LOADING);
|
||||
}
|
||||
} else if (Static244.gameState == 30) {
|
||||
} else if (gameState == 30) {
|
||||
Static89.method1841();
|
||||
} else if (Static244.gameState == 40) {
|
||||
Static114.drawTextOnScreen(false, Static34.concatenate(new JagString[] { LocalizedText.CONLOST, Static269.aClass100_556, LocalizedText.ATTEMPT_TO_REESTABLISH}));
|
||||
} else if (gameState == 40) {
|
||||
Static114.drawTextOnScreen(false, JagString.concatenate(new JagString[] { LocalizedText.CONLOST, Static269.aClass100_556, LocalizedText.ATTEMPT_TO_REESTABLISH}));
|
||||
}
|
||||
if (GlRenderer.enabled && Static244.gameState != 0) {
|
||||
if (GlRenderer.enabled && gameState != 0) {
|
||||
GlRenderer.swapBuffers();
|
||||
for (local80 = 0; local80 < Static24.anInt766; local80++) {
|
||||
Static31.rectangleRedraw[local80] = false;
|
||||
for (local80 = 0; local80 < InterfaceList.anInt766; local80++) {
|
||||
InterfaceList.rectangleRedraw[local80] = false;
|
||||
}
|
||||
} else {
|
||||
@Pc(388) Graphics local388;
|
||||
if ((Static244.gameState == 30 || Static244.gameState == 10) && Static199.rectDebug == 0 && !local158) {
|
||||
if ((gameState == 30 || gameState == 10) && Static199.rectDebug == 0 && !local158) {
|
||||
try {
|
||||
local388 = GameShell.canvas.getGraphics();
|
||||
for (local84 = 0; local84 < Static24.anInt766; local84++) {
|
||||
if (Static31.rectangleRedraw[local84]) {
|
||||
Static260.frameBuffer.drawAt(Static224.anIntArray443[local84], Static264.anIntArray410[local84], Static67.anIntArray320[local84], local388, Static50.anIntArray133[local84]);
|
||||
Static31.rectangleRedraw[local84] = false;
|
||||
for (local84 = 0; local84 < InterfaceList.anInt766; local84++) {
|
||||
if (InterfaceList.rectangleRedraw[local84]) {
|
||||
frameBuffer.drawAt(Static224.anIntArray443[local84], Static264.anIntArray410[local84], Static67.anIntArray320[local84], local388, Static50.anIntArray133[local84]);
|
||||
InterfaceList.rectangleRedraw[local84] = false;
|
||||
}
|
||||
}
|
||||
} catch (@Pc(423) Exception local423) {
|
||||
GameShell.canvas.repaint();
|
||||
}
|
||||
} else if (Static244.gameState != 0) {
|
||||
} else if (gameState != 0) {
|
||||
try {
|
||||
local388 = GameShell.canvas.getGraphics();
|
||||
Static260.frameBuffer.draw(local388);
|
||||
for (local84 = 0; local84 < Static24.anInt766; local84++) {
|
||||
Static31.rectangleRedraw[local84] = false;
|
||||
frameBuffer.draw(local388);
|
||||
for (local84 = 0; local84 < InterfaceList.anInt766; local84++) {
|
||||
InterfaceList.rectangleRedraw[local84] = false;
|
||||
}
|
||||
} catch (@Pc(453) Exception local453) {
|
||||
GameShell.canvas.repaint();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Static107.clean) {
|
||||
if (clean) {
|
||||
Static213.clean();
|
||||
}
|
||||
if (Static164.safeMode && Static244.gameState == 10 && Static154.topLevelInterface != -1) {
|
||||
Static164.safeMode = false;
|
||||
Static203.savePreferences(GameShell.signLink);
|
||||
if (Preferences.safeMode && gameState == 10 && InterfaceList.topLevelInterface != -1) {
|
||||
Preferences.safeMode = false;
|
||||
Preferences.write(GameShell.signLink);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -201,52 +260,52 @@ public final class client extends GameShell {
|
|||
GlRenderer.quit();
|
||||
}
|
||||
if (GameShell.fullScreenFrame != null) {
|
||||
Static25.exitFullScreen(GameShell.fullScreenFrame, GameShell.signLink);
|
||||
DisplayMode.exitFullScreen(GameShell.fullScreenFrame, GameShell.signLink);
|
||||
GameShell.fullScreenFrame = null;
|
||||
}
|
||||
if (GameShell.signLink != null) {
|
||||
GameShell.signLink.unloadGlNatives(this.getClass());
|
||||
}
|
||||
if (Static178.instance != null) {
|
||||
Static178.instance.running = false;
|
||||
if (MouseRecorder.instance != null) {
|
||||
MouseRecorder.instance.running = false;
|
||||
}
|
||||
Static178.instance = null;
|
||||
if (Static124.socket != null) {
|
||||
Static124.socket.close();
|
||||
Static124.socket = null;
|
||||
MouseRecorder.instance = null;
|
||||
if (Protocol.socket != null) {
|
||||
Protocol.socket.close();
|
||||
Protocol.socket = null;
|
||||
}
|
||||
Keyboard.stop(GameShell.canvas);
|
||||
Static223.stop(GameShell.canvas);
|
||||
if (Static71.mouseWheel != null) {
|
||||
Static71.mouseWheel.stop(GameShell.canvas);
|
||||
Mouse.stop(GameShell.canvas);
|
||||
if (mouseWheel != null) {
|
||||
mouseWheel.stop(GameShell.canvas);
|
||||
}
|
||||
Static6.quit();
|
||||
Static251.quit();
|
||||
Static71.mouseWheel = null;
|
||||
if (Static11.musicChannel != null) {
|
||||
Static11.musicChannel.quit();
|
||||
Keyboard.quit();
|
||||
Mouse.quit();
|
||||
mouseWheel = null;
|
||||
if (musicChannel != null) {
|
||||
musicChannel.quit();
|
||||
}
|
||||
if (Static147.soundChannel != null) {
|
||||
Static147.soundChannel.quit();
|
||||
if (soundChannel != null) {
|
||||
soundChannel.quit();
|
||||
}
|
||||
Static107.js5NetQueue.quit();
|
||||
Static86.js5CacheQueue.quit();
|
||||
js5NetQueue.quit();
|
||||
js5CacheQueue.quit();
|
||||
try {
|
||||
if (Static172.cacheData != null) {
|
||||
Static172.cacheData.method1455();
|
||||
if (cacheData != null) {
|
||||
cacheData.method1455();
|
||||
}
|
||||
if (Static47.cacheIndexes != null) {
|
||||
for (@Pc(95) int local95 = 0; local95 < Static47.cacheIndexes.length; local95++) {
|
||||
if (Static47.cacheIndexes[local95] != null) {
|
||||
Static47.cacheIndexes[local95].method1455();
|
||||
if (cacheIndexes != null) {
|
||||
for (@Pc(95) int local95 = 0; local95 < cacheIndexes.length; local95++) {
|
||||
if (cacheIndexes[local95] != null) {
|
||||
cacheIndexes[local95].method1455();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Static190.cacheMasterIndex != null) {
|
||||
Static190.cacheMasterIndex.method1455();
|
||||
if (cacheMasterIndex != null) {
|
||||
cacheMasterIndex.method1455();
|
||||
}
|
||||
if (Static121.uid != null) {
|
||||
Static121.uid.method1455();
|
||||
if (uid != null) {
|
||||
uid.method1455();
|
||||
}
|
||||
} catch (@Pc(129) IOException local129) {
|
||||
}
|
||||
|
|
@ -258,107 +317,107 @@ public final class client extends GameShell {
|
|||
if (!this.isHostnameValid()) {
|
||||
return;
|
||||
}
|
||||
Static187.worldListId = Integer.parseInt(this.getParameter("worldid"));
|
||||
Static83.modeWhere = Integer.parseInt(this.getParameter("modewhere"));
|
||||
if (Static83.modeWhere < 0 || Static83.modeWhere > 1) {
|
||||
Static83.modeWhere = 0;
|
||||
worldListId = Integer.parseInt(this.getParameter("worldid"));
|
||||
modeWhere = Integer.parseInt(this.getParameter("modewhere"));
|
||||
if (modeWhere < 0 || modeWhere > 1) {
|
||||
modeWhere = 0;
|
||||
}
|
||||
Static81.modeWhat = Integer.parseInt(this.getParameter("modewhat"));
|
||||
if (Static81.modeWhat < 0 || Static81.modeWhat > 2) {
|
||||
Static81.modeWhat = 0;
|
||||
modeWhat = Integer.parseInt(this.getParameter("modewhat"));
|
||||
if (modeWhat < 0 || modeWhat > 2) {
|
||||
modeWhat = 0;
|
||||
}
|
||||
@Pc(50) String local50 = this.getParameter("advertsuppressed");
|
||||
if (local50 != null && local50.equals("1")) {
|
||||
Static249.advertSuppressed = true;
|
||||
advertSuppressed = true;
|
||||
} else {
|
||||
Static249.advertSuppressed = false;
|
||||
advertSuppressed = false;
|
||||
}
|
||||
try {
|
||||
Static141.language = Integer.parseInt(this.getParameter("lang"));
|
||||
language = Integer.parseInt(this.getParameter("lang"));
|
||||
} catch (@Pc(69) Exception local69) {
|
||||
Static141.language = 0;
|
||||
language = 0;
|
||||
}
|
||||
Static3.setLanguage(Static141.language);
|
||||
LocalizedText.setLanguage(language);
|
||||
@Pc(78) String local78 = this.getParameter("objecttag");
|
||||
if (local78 != null && local78.equals("1")) {
|
||||
Static233.javaScript = true;
|
||||
javaScript = true;
|
||||
} else {
|
||||
Static233.javaScript = false;
|
||||
javaScript = false;
|
||||
}
|
||||
@Pc(94) String local94 = this.getParameter("js");
|
||||
if (local94 != null && local94.equals("1")) {
|
||||
Static150.objectTag = true;
|
||||
objectTag = true;
|
||||
} else {
|
||||
Static150.objectTag = false;
|
||||
objectTag = false;
|
||||
}
|
||||
@Pc(111) String local111 = this.getParameter("game");
|
||||
if (local111 != null && local111.equals("1")) {
|
||||
Static266.game = 1;
|
||||
game = 1;
|
||||
} else {
|
||||
Static266.game = 0;
|
||||
game = 0;
|
||||
}
|
||||
try {
|
||||
Static204.affiliate = Integer.parseInt(this.getParameter("affid"));
|
||||
affiliate = Integer.parseInt(this.getParameter("affid"));
|
||||
} catch (@Pc(130) Exception local130) {
|
||||
Static204.affiliate = 0;
|
||||
affiliate = 0;
|
||||
}
|
||||
Static47.settings = Static227.SETTINGS.fromParameters(this);
|
||||
if (Static47.settings == null) {
|
||||
Static47.settings = Static186.EMPTY;
|
||||
settings = Static227.SETTINGS.fromParameters(this);
|
||||
if (settings == null) {
|
||||
settings = JagString.EMPTY;
|
||||
}
|
||||
@Pc(146) String local146 = this.getParameter("country");
|
||||
if (local146 != null) {
|
||||
try {
|
||||
Static279.country = Integer.parseInt(local146);
|
||||
country = Integer.parseInt(local146);
|
||||
} catch (@Pc(153) Exception local153) {
|
||||
Static279.country = 0;
|
||||
country = 0;
|
||||
}
|
||||
}
|
||||
@Pc(159) String local159 = this.getParameter("haveie6");
|
||||
if (local159 != null && local159.equals("1")) {
|
||||
Static178.haveIe6 = true;
|
||||
haveIe6 = true;
|
||||
} else {
|
||||
Static178.haveIe6 = false;
|
||||
haveIe6 = false;
|
||||
}
|
||||
Static215.instance = this;
|
||||
this.startApplet(Static81.modeWhat + 32);
|
||||
instance = this;
|
||||
this.startApplet(modeWhat + 32);
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!client", name = "g", descriptor = "(I)V")
|
||||
@Override
|
||||
protected final void mainInit() {
|
||||
Static203.method3662();
|
||||
Static86.js5CacheQueue = new Js5CacheQueue();
|
||||
Static107.js5NetQueue = new Js5NetQueue();
|
||||
if (Static81.modeWhat != 0) {
|
||||
js5CacheQueue = new Js5CacheQueue();
|
||||
js5NetQueue = new Js5NetQueue();
|
||||
if (modeWhat != 0) {
|
||||
Static51.aByteArrayArray8 = new byte[50][];
|
||||
}
|
||||
Static80.read(GameShell.signLink); // preferences
|
||||
if (Static83.modeWhere == 0) {
|
||||
Preferences.read(GameShell.signLink);
|
||||
if (modeWhere == 0) {
|
||||
Static143.worldListHostname = GlobalConfig.DEFAULT_HOSTNAME; // this.getCodeBase().getHost();
|
||||
Static97.worldListAlternatePort = GlobalConfig.ALTERNATE_PORT + 1;
|
||||
Static249.worldListDefaultPort = GlobalConfig.DEFAULT_PORT + 1;
|
||||
} else if (Static83.modeWhere == 1) {
|
||||
} else if (modeWhere == 1) {
|
||||
Static143.worldListHostname = GlobalConfig.DEFAULT_HOSTNAME; // this.getCodeBase().getHost();
|
||||
Static97.worldListAlternatePort = GlobalConfig.ALTERNATE_PORT + Static187.worldListId;
|
||||
Static249.worldListDefaultPort = GlobalConfig.DEFAULT_PORT + Static187.worldListId;
|
||||
} else if (Static83.modeWhere == 2) {
|
||||
Static97.worldListAlternatePort = GlobalConfig.ALTERNATE_PORT + worldListId;
|
||||
Static249.worldListDefaultPort = GlobalConfig.DEFAULT_PORT + worldListId;
|
||||
} else if (modeWhere == 2) {
|
||||
Static143.worldListHostname = GlobalConfig.DEFAULT_HOSTNAME; // "127.0.0.1";
|
||||
Static97.worldListAlternatePort = GlobalConfig.ALTERNATE_PORT + Static187.worldListId;
|
||||
Static249.worldListDefaultPort = GlobalConfig.DEFAULT_PORT + Static187.worldListId;
|
||||
Static97.worldListAlternatePort = GlobalConfig.ALTERNATE_PORT + worldListId;
|
||||
Static249.worldListDefaultPort = GlobalConfig.DEFAULT_PORT + worldListId;
|
||||
}
|
||||
if (Static266.game == 1) {
|
||||
if (game == 1) {
|
||||
Static172.shiftClick = true;
|
||||
Static161.anInt3923 = 16777215;
|
||||
Static161.anInt3922 = 0;
|
||||
Static33.aShortArrayArray2 = Static198.aShortArrayArray4;
|
||||
Static172.aShortArrayArray7 = Static32.aShortArrayArray1;
|
||||
Static200.aShortArray65 = Static2.aShortArray1;
|
||||
Static160.aShortArray41 = Static20.aShortArray5;
|
||||
Static160.aShortArray41 = PlayerAppearance.aShortArray5;
|
||||
} else {
|
||||
Static33.aShortArrayArray2 = Static154.aShortArrayArray6;
|
||||
Static160.aShortArray41 = Static195.aShortArray64;
|
||||
Static172.aShortArrayArray7 = Static43.aShortArrayArray5;
|
||||
Static172.aShortArrayArray7 = SubScript.aShortArrayArray5;
|
||||
Static200.aShortArray65 = Static260.aShortArray71;
|
||||
}
|
||||
Static55.alternatePort = Static97.worldListAlternatePort;
|
||||
|
|
@ -367,40 +426,40 @@ public final class client extends GameShell {
|
|||
Static208.worldListPort = Static249.worldListDefaultPort;
|
||||
Static259.aShortArray88 = Static62.aShortArray19 = Static232.aShortArray74 = Static259.aShortArray87 = new short[256];
|
||||
Static209.port = Static208.worldListPort;
|
||||
if ((SignLink.anInt5928 == 3 && Static83.modeWhere != 2) || GlobalConfig.SELECT_DEFAULT_WORLD) {
|
||||
Static125.worldId = Static187.worldListId;
|
||||
if ((SignLink.anInt5928 == 3 && modeWhere != 2) || GlobalConfig.SELECT_DEFAULT_WORLD) {
|
||||
Static125.worldId = worldListId;
|
||||
}
|
||||
Keyboard.init(); // keyboard
|
||||
Keyboard.start(GameShell.canvas); // keyboard
|
||||
Static88.start(GameShell.canvas); // mouse
|
||||
Static71.mouseWheel = Static44.create();
|
||||
if (Static71.mouseWheel != null) {
|
||||
Static71.mouseWheel.start(GameShell.canvas);
|
||||
mouseWheel = Static44.create();
|
||||
if (mouseWheel != null) {
|
||||
mouseWheel.start(GameShell.canvas);
|
||||
}
|
||||
Static7.anInt986 = SignLink.anInt5928;
|
||||
try {
|
||||
if (GameShell.signLink.cacheData != null) {
|
||||
Static172.cacheData = new BufferedFile(GameShell.signLink.cacheData, 5200, 0);
|
||||
cacheData = new BufferedFile(GameShell.signLink.cacheData, 5200, 0);
|
||||
for (@Pc(162) int i = 0; i < 28; i++) {
|
||||
Static47.cacheIndexes[i] = new BufferedFile(GameShell.signLink.cacheIndexes[i], 6000, 0);
|
||||
cacheIndexes[i] = new BufferedFile(GameShell.signLink.cacheIndexes[i], 6000, 0);
|
||||
}
|
||||
Static190.cacheMasterIndex = new BufferedFile(GameShell.signLink.cacheMasterIndex, 6000, 0);
|
||||
Static148.masterCache = new Cache(255, Static172.cacheData, Static190.cacheMasterIndex, 500000);
|
||||
Static121.uid = new BufferedFile(GameShell.signLink.uid, 24, 0);
|
||||
cacheMasterIndex = new BufferedFile(GameShell.signLink.cacheMasterIndex, 6000, 0);
|
||||
Static148.masterCache = new Cache(255, cacheData, cacheMasterIndex, 500000);
|
||||
uid = new BufferedFile(GameShell.signLink.uid, 24, 0);
|
||||
GameShell.signLink.cacheIndexes = null;
|
||||
GameShell.signLink.cacheMasterIndex = null;
|
||||
GameShell.signLink.uid = null;
|
||||
GameShell.signLink.cacheData = null;
|
||||
}
|
||||
} catch (@Pc(220) IOException ex) {
|
||||
Static121.uid = null;
|
||||
Static172.cacheData = null;
|
||||
Static190.cacheMasterIndex = null;
|
||||
uid = null;
|
||||
cacheData = null;
|
||||
cacheMasterIndex = null;
|
||||
Static148.masterCache = null;
|
||||
}
|
||||
Static278.mainLoadPrimaryText = LocalizedText.GAME0_LOADING;
|
||||
if (Static83.modeWhere != 0) {
|
||||
Static43.displayFps = true;
|
||||
if (modeWhere != 0) {
|
||||
Cheat.displayFps = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -411,9 +470,9 @@ public final class client extends GameShell {
|
|||
|
||||
@OriginalMember(owner = "client!client", name = "a", descriptor = "(ZI)V")
|
||||
private void setJs5Response(@OriginalArg(1) int arg0) {
|
||||
Static107.js5NetQueue.errors++;
|
||||
js5NetQueue.errors++;
|
||||
Static37.js5SocketRequest = null;
|
||||
Static107.js5NetQueue.response = arg0;
|
||||
js5NetQueue.response = arg0;
|
||||
Static206.js5Socket = null;
|
||||
Static4.js5ConnectState = 0;
|
||||
}
|
||||
|
|
@ -425,8 +484,8 @@ public final class client extends GameShell {
|
|||
Static205.keyChars[Static182.keyQueueSize] = Keyboard.keyChar;
|
||||
}
|
||||
Static178.anInt4247++;
|
||||
if (Static154.topLevelInterface != -1) {
|
||||
Static57.method1320(0, 0, 0, GameShell.canvasWidth, Static154.topLevelInterface, 0, GameShell.canvasHeight);
|
||||
if (InterfaceList.topLevelInterface != -1) {
|
||||
Static57.method1320(0, 0, 0, GameShell.canvasWidth, InterfaceList.topLevelInterface, 0, GameShell.canvasHeight);
|
||||
}
|
||||
Static119.transmitTimer++;
|
||||
if (GlRenderer.enabled) {
|
||||
|
|
@ -488,7 +547,7 @@ public final class client extends GameShell {
|
|||
if (priorityRequest == null) {
|
||||
while (true) {
|
||||
do {
|
||||
priorityRequest = (HookRequest) Static185.lowPriorityRequests.removeHead();
|
||||
priorityRequest = (HookRequest) InterfaceList.lowPriorityRequests.removeHead();
|
||||
if (priorityRequest == null) {
|
||||
if (Static105.aClass13_14 != null) {
|
||||
Static4.method28();
|
||||
|
|
@ -536,7 +595,7 @@ public final class client extends GameShell {
|
|||
|
||||
@OriginalMember(owner = "client!client", name = "d", descriptor = "(Z)V")
|
||||
private void js5NetworkLoop() {
|
||||
@Pc(3) boolean idle = Static107.js5NetQueue.loop();
|
||||
@Pc(3) boolean idle = js5NetQueue.loop();
|
||||
if (!idle) {
|
||||
this.js5Connect();
|
||||
}
|
||||
|
|
@ -544,8 +603,8 @@ public final class client extends GameShell {
|
|||
|
||||
@OriginalMember(owner = "client!client", name = "h", descriptor = "(I)V")
|
||||
private void js5Connect() {
|
||||
if (Static233.js5PrevErrors < Static107.js5NetQueue.errors) {
|
||||
Static22.js5ConnectDelay = 5 * 50 * (Static107.js5NetQueue.errors - 1);
|
||||
if (Static233.js5PrevErrors < js5NetQueue.errors) {
|
||||
Static22.js5ConnectDelay = 5 * 50 * (js5NetQueue.errors - 1);
|
||||
if (Static271.defaultPort == Static209.port) {
|
||||
Static209.port = Static55.alternatePort;
|
||||
} else {
|
||||
|
|
@ -554,29 +613,29 @@ public final class client extends GameShell {
|
|||
if (Static22.js5ConnectDelay > 3000) {
|
||||
Static22.js5ConnectDelay = 3000;
|
||||
}
|
||||
if (Static107.js5NetQueue.errors >= 2 && Static107.js5NetQueue.response == 6) {
|
||||
if (js5NetQueue.errors >= 2 && js5NetQueue.response == 6) {
|
||||
this.error("js5connect_outofdate");
|
||||
Static244.gameState = 1000;
|
||||
gameState = 1000;
|
||||
return;
|
||||
}
|
||||
if (Static107.js5NetQueue.errors >= 4 && Static107.js5NetQueue.response == -1) {
|
||||
if (js5NetQueue.errors >= 4 && js5NetQueue.response == -1) {
|
||||
this.error("js5crc");
|
||||
Static244.gameState = 1000;
|
||||
gameState = 1000;
|
||||
return;
|
||||
}
|
||||
if (Static107.js5NetQueue.errors >= 4 && (Static244.gameState == 0 || Static244.gameState == 5)) {
|
||||
if (Static107.js5NetQueue.response == 7 || Static107.js5NetQueue.response == 9) {
|
||||
if (js5NetQueue.errors >= 4 && (gameState == 0 || gameState == 5)) {
|
||||
if (js5NetQueue.response == 7 || js5NetQueue.response == 9) {
|
||||
this.error("js5connect_full");
|
||||
} else if (Static107.js5NetQueue.response > 0) {
|
||||
} else if (js5NetQueue.response > 0) {
|
||||
this.error("js5connect");
|
||||
} else {
|
||||
this.error("js5io");
|
||||
}
|
||||
Static244.gameState = 1000;
|
||||
gameState = 1000;
|
||||
return;
|
||||
}
|
||||
}
|
||||
Static233.js5PrevErrors = Static107.js5NetQueue.errors;
|
||||
Static233.js5PrevErrors = js5NetQueue.errors;
|
||||
if (Static22.js5ConnectDelay > 0) {
|
||||
Static22.js5ConnectDelay--;
|
||||
return;
|
||||
|
|
@ -605,7 +664,7 @@ public final class client extends GameShell {
|
|||
Static217.js5ConnectTime = MonotonicClock.currentTimeMillis();
|
||||
}
|
||||
if (Static4.js5ConnectState == 3) {
|
||||
if (Static244.gameState == 0 || Static244.gameState == 5 || Static206.js5Socket.available() > 0) {
|
||||
if (gameState == 0 || gameState == 5 || Static206.js5Socket.available() > 0) {
|
||||
@Pc(258) int response = Static206.js5Socket.read();
|
||||
if (response != 0) {
|
||||
this.setJs5Response(response);
|
||||
|
|
@ -618,8 +677,8 @@ public final class client extends GameShell {
|
|||
}
|
||||
}
|
||||
if (Static4.js5ConnectState == 4) {
|
||||
@Pc(296) boolean loggedOut = Static244.gameState == 5 || Static244.gameState == 10 || Static244.gameState == 28;
|
||||
Static107.js5NetQueue.loggedOut(!loggedOut, Static206.js5Socket);
|
||||
@Pc(296) boolean loggedOut = gameState == 5 || gameState == 10 || gameState == 28;
|
||||
js5NetQueue.loggedOut(!loggedOut, Static206.js5Socket);
|
||||
Static206.js5Socket = null;
|
||||
Static37.js5SocketRequest = null;
|
||||
Static4.js5ConnectState = 0;
|
||||
|
|
@ -631,14 +690,14 @@ public final class client extends GameShell {
|
|||
|
||||
@OriginalMember(owner = "client!client", name = "i", descriptor = "(I)V")
|
||||
private void mainLoad() {
|
||||
if (!Static164.safeMode) {
|
||||
if (!Preferences.safeMode) {
|
||||
noSafeMode: while (true) {
|
||||
do {
|
||||
if (!Keyboard.nextKey()) {
|
||||
break noSafeMode;
|
||||
}
|
||||
} while (Keyboard.keyChar != 115 && Keyboard.keyChar != 83);
|
||||
Static164.safeMode = true;
|
||||
Preferences.safeMode = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -675,7 +734,7 @@ public final class client extends GameShell {
|
|||
Static126.mainLoadSecondaryText = LocalizedText.MAINLOAD10B;
|
||||
} else if (Static166.mainLoadState == 30) {
|
||||
if (Static257.js5MasterIndex == null) {
|
||||
Static257.js5MasterIndex = new Js5MasterIndex(Static107.js5NetQueue, Static86.js5CacheQueue);
|
||||
Static257.js5MasterIndex = new Js5MasterIndex(js5NetQueue, js5CacheQueue);
|
||||
}
|
||||
if (Static257.js5MasterIndex.method178()) {
|
||||
Static213.js5Archive0 = Static9.createJs5(false, true, true, 0);
|
||||
|
|
@ -701,7 +760,7 @@ public final class client extends GameShell {
|
|||
Static253.js5Archive20 = Static9.createJs5(false, true, true, 20);
|
||||
Static122.js5Archive21 = Static9.createJs5(false, true, true, 21);
|
||||
Static156.js5Archive22 = Static9.createJs5(false, true, true, 22);
|
||||
Static227.js5Archive23 = Static9.createJs5(true, true, true, 23);
|
||||
js5Archive23 = Static9.createJs5(true, true, true, 23);
|
||||
Static254.js5Archive24 = Static9.createJs5(false, true, true, 24);
|
||||
Static28.js5Archive25 = Static9.createJs5(false, true, true, 25);
|
||||
Static167.js5Archive26 = Static9.createJs5(true, true, true, 26);
|
||||
|
|
@ -721,40 +780,40 @@ public final class client extends GameShell {
|
|||
if (percentage == 100) {
|
||||
Static199.mainLoadPercentage = 20;
|
||||
Static126.mainLoadSecondaryText = LocalizedText.MAINLOAD40B;
|
||||
Static75.init(Static209.js5Archive8);
|
||||
Sprites.init(Static209.js5Archive8);
|
||||
Static167.init(Static209.js5Archive8);
|
||||
Static81.init(Static209.js5Archive8);
|
||||
Static166.mainLoadState = 45;
|
||||
} else {
|
||||
if (percentage != 0) {
|
||||
Static126.mainLoadSecondaryText = Static34.concatenate(new JagString[] { LocalizedText.CHECKING_FOR_UPDATES, Static123.parseInt(percentage), Static49.PERCENT_SIGN});
|
||||
Static126.mainLoadSecondaryText = JagString.concatenate(new JagString[] { LocalizedText.CHECKING_FOR_UPDATES, Static123.parseInt(percentage), Static49.PERCENT_SIGN});
|
||||
}
|
||||
Static199.mainLoadPercentage = 20;
|
||||
}
|
||||
} else if (Static166.mainLoadState == 45) {
|
||||
AudioChannel.init(Static99.stereo);
|
||||
AudioChannel.init(Preferences.stereo);
|
||||
Static148.musicStream = new MidiPcmStream();
|
||||
Static148.musicStream.init();
|
||||
Static11.musicChannel = AudioChannel.create(22050, GameShell.signLink, GameShell.canvas, 0);
|
||||
Static11.musicChannel.setStream(Static148.musicStream);
|
||||
musicChannel = AudioChannel.create(22050, GameShell.signLink, GameShell.canvas, 0);
|
||||
musicChannel.setStream(Static148.musicStream);
|
||||
Static34.init(Static148.musicStream, Static138.js5Archive15, Static137.js5Archive14, Static248.js5Archive4);
|
||||
Static147.soundChannel = AudioChannel.create(2048, GameShell.signLink, GameShell.canvas, 1);
|
||||
soundChannel = AudioChannel.create(2048, GameShell.signLink, GameShell.canvas, 1);
|
||||
Static204.soundStream = new MixerPcmStream();
|
||||
Static147.soundChannel.setStream(Static204.soundStream);
|
||||
soundChannel.setStream(Static204.soundStream);
|
||||
Static56.resampler = new Resampler(22050, Static44.sampleRate);
|
||||
Static250.titleSong = Static130.js5Archive6.getGroupId(Static1.TITLE_SONG);
|
||||
Static199.mainLoadPercentage = 30;
|
||||
Static166.mainLoadState = 50;
|
||||
Static126.mainLoadSecondaryText = LocalizedText.MAINLOAD45B;
|
||||
} else if (Static166.mainLoadState == 50) {
|
||||
percentage = Static74.getReady(Static209.js5Archive8, Static261.js5Archive13);
|
||||
percentage = Fonts.getReady(Static209.js5Archive8, Static261.js5Archive13);
|
||||
i = Static143.getTotal();
|
||||
if (percentage >= i) {
|
||||
Static126.mainLoadSecondaryText = LocalizedText.MAINLOAD50B;
|
||||
Static199.mainLoadPercentage = 35;
|
||||
Static166.mainLoadState = 60;
|
||||
} else {
|
||||
Static126.mainLoadSecondaryText = Static34.concatenate(new JagString[] { LocalizedText.MAINLOAD50, Static123.parseInt(percentage * 100 / i), Static49.PERCENT_SIGN});
|
||||
Static126.mainLoadSecondaryText = JagString.concatenate(new JagString[] { LocalizedText.MAINLOAD50, Static123.parseInt(percentage * 100 / i), Static49.PERCENT_SIGN});
|
||||
Static199.mainLoadPercentage = 35;
|
||||
}
|
||||
} else if (Static166.mainLoadState == 60) {
|
||||
|
|
@ -765,7 +824,7 @@ public final class client extends GameShell {
|
|||
Static166.mainLoadState = 65;
|
||||
Static199.mainLoadPercentage = 40;
|
||||
} else {
|
||||
Static126.mainLoadSecondaryText = Static34.concatenate(new JagString[] { LocalizedText.MAINLOAD60, Static123.parseInt(percentage * 100 / i), Static49.PERCENT_SIGN});
|
||||
Static126.mainLoadSecondaryText = JagString.concatenate(new JagString[] { LocalizedText.MAINLOAD60, Static123.parseInt(percentage * 100 / i), Static49.PERCENT_SIGN});
|
||||
Static199.mainLoadPercentage = 40;
|
||||
}
|
||||
} else if (Static166.mainLoadState == 65) {
|
||||
|
|
@ -824,42 +883,42 @@ public final class client extends GameShell {
|
|||
Static58.init();
|
||||
Static166.mainLoadState = 80;
|
||||
} else {
|
||||
Static126.mainLoadSecondaryText = Static34.concatenate(new JagString[] { LocalizedText.MAINLOAD70, Static123.parseInt(percentage / 11), Static49.PERCENT_SIGN});
|
||||
Static126.mainLoadSecondaryText = JagString.concatenate(new JagString[] { LocalizedText.MAINLOAD70, Static123.parseInt(percentage / 11), Static49.PERCENT_SIGN});
|
||||
Static199.mainLoadPercentage = 50;
|
||||
}
|
||||
} else if (Static166.mainLoadState == 80) {
|
||||
percentage = Static28.getReady(Static209.js5Archive8);
|
||||
percentage = Sprites.getReady(Static209.js5Archive8);
|
||||
i = Static62.total();
|
||||
if (i > percentage) {
|
||||
Static126.mainLoadSecondaryText = Static34.concatenate(new JagString[] { LocalizedText.MAINLOAD80, Static123.parseInt(percentage * 100 / i), Static49.PERCENT_SIGN});
|
||||
Static126.mainLoadSecondaryText = JagString.concatenate(new JagString[] { LocalizedText.MAINLOAD80, Static123.parseInt(percentage * 100 / i), Static49.PERCENT_SIGN});
|
||||
Static199.mainLoadPercentage = 60;
|
||||
} else {
|
||||
Static30.load(Static209.js5Archive8);
|
||||
Sprites.load(Static209.js5Archive8);
|
||||
Static166.mainLoadState = 90;
|
||||
Static199.mainLoadPercentage = 60;
|
||||
Static126.mainLoadSecondaryText = LocalizedText.MAINLOAD80B;
|
||||
}
|
||||
} else if (Static166.mainLoadState == 90) {
|
||||
if (Static167.js5Archive26.fetchAll()) {
|
||||
@Pc(951) Js5GlTextureProvider textureProvider = new Js5GlTextureProvider(Static195.js5Archive9, Static167.js5Archive26, Static209.js5Archive8, 20, !Static53.highDetailTextures);
|
||||
@Pc(951) Js5GlTextureProvider textureProvider = new Js5GlTextureProvider(Static195.js5Archive9, Static167.js5Archive26, Static209.js5Archive8, 20, !Preferences.highDetailTextures);
|
||||
Rasteriser.unpackTextures(textureProvider);
|
||||
if (Static113.brightness == 1) {
|
||||
if (Preferences.brightness == 1) {
|
||||
Rasteriser.setBrightness(0.9F);
|
||||
}
|
||||
if (Static113.brightness == 2) {
|
||||
if (Preferences.brightness == 2) {
|
||||
Rasteriser.setBrightness(0.8F);
|
||||
}
|
||||
if (Static113.brightness == 3) {
|
||||
if (Preferences.brightness == 3) {
|
||||
Rasteriser.setBrightness(0.7F);
|
||||
}
|
||||
if (Static113.brightness == 4) {
|
||||
if (Preferences.brightness == 4) {
|
||||
Rasteriser.setBrightness(0.6F);
|
||||
}
|
||||
Static126.mainLoadSecondaryText = LocalizedText.MAINLOAD90B;
|
||||
Static166.mainLoadState = 100;
|
||||
Static199.mainLoadPercentage = 70;
|
||||
} else {
|
||||
Static126.mainLoadSecondaryText = Static34.concatenate(new JagString[] { LocalizedText.MAINLOAD90, Static123.parseInt(Static167.js5Archive26.getPercentageComplete()), Static49.PERCENT_SIGN});
|
||||
Static126.mainLoadSecondaryText = JagString.concatenate(new JagString[] { LocalizedText.MAINLOAD90, Static123.parseInt(Static167.js5Archive26.getPercentageComplete()), Static49.PERCENT_SIGN});
|
||||
Static199.mainLoadPercentage = 70;
|
||||
}
|
||||
} else if (Static166.mainLoadState == 100) {
|
||||
|
|
@ -867,39 +926,39 @@ public final class client extends GameShell {
|
|||
Static166.mainLoadState = 110;
|
||||
}
|
||||
} else if (Static166.mainLoadState == 110) {
|
||||
Static178.instance = new MouseRecorder();
|
||||
GameShell.signLink.startThread(10, Static178.instance);
|
||||
MouseRecorder.instance = new MouseRecorder();
|
||||
GameShell.signLink.startThread(10, MouseRecorder.instance);
|
||||
Static126.mainLoadSecondaryText = LocalizedText.MAINLOAD110B;
|
||||
Static199.mainLoadPercentage = 75;
|
||||
Static166.mainLoadState = 120;
|
||||
} else if (Static166.mainLoadState == 120) {
|
||||
if (Static184.js5Archive10.isFileReady(Static186.EMPTY, Static252.HUFFMAN_GROUP)) {
|
||||
@Pc(1060) HuffmanCodec codec = new HuffmanCodec(Static184.js5Archive10.fetchFile(Static186.EMPTY, Static252.HUFFMAN_GROUP));
|
||||
if (Static184.js5Archive10.isFileReady(JagString.EMPTY, Static252.HUFFMAN_GROUP)) {
|
||||
@Pc(1060) HuffmanCodec codec = new HuffmanCodec(Static184.js5Archive10.fetchFile(JagString.EMPTY, Static252.HUFFMAN_GROUP));
|
||||
Static1.method1(codec);
|
||||
Static126.mainLoadSecondaryText = LocalizedText.MAINLOAD120B;
|
||||
Static166.mainLoadState = 130;
|
||||
Static199.mainLoadPercentage = 80;
|
||||
} else {
|
||||
Static126.mainLoadSecondaryText = Static34.concatenate(new JagString[] { LocalizedText.MAINLOAD120, Static206.aClass100_899 });
|
||||
Static126.mainLoadSecondaryText = JagString.concatenate(new JagString[] { LocalizedText.MAINLOAD120, Static206.aClass100_899 });
|
||||
Static199.mainLoadPercentage = 80;
|
||||
}
|
||||
} else if (Static166.mainLoadState == 130) {
|
||||
if (!Static41.js5Archive3.fetchAll()) {
|
||||
Static126.mainLoadSecondaryText = Static34.concatenate(new JagString[] { LocalizedText.MAINLOAD130, Static123.parseInt(Static41.js5Archive3.getPercentageComplete() * 3 / 4), Static49.PERCENT_SIGN});
|
||||
Static126.mainLoadSecondaryText = JagString.concatenate(new JagString[] { LocalizedText.MAINLOAD130, Static123.parseInt(Static41.js5Archive3.getPercentageComplete() * 3 / 4), Static49.PERCENT_SIGN});
|
||||
Static199.mainLoadPercentage = 85;
|
||||
} else if (!Static16.js5Archive12.fetchAll()) {
|
||||
Static126.mainLoadSecondaryText = Static34.concatenate(new JagString[] { LocalizedText.MAINLOAD130, Static123.parseInt(Static16.js5Archive12.getPercentageComplete() / 10 + 75), Static49.PERCENT_SIGN});
|
||||
Static126.mainLoadSecondaryText = JagString.concatenate(new JagString[] { LocalizedText.MAINLOAD130, Static123.parseInt(Static16.js5Archive12.getPercentageComplete() / 10 + 75), Static49.PERCENT_SIGN});
|
||||
Static199.mainLoadPercentage = 85;
|
||||
} else if (!Static261.js5Archive13.fetchAll()) {
|
||||
Static126.mainLoadSecondaryText = Static34.concatenate(new JagString[] { LocalizedText.MAINLOAD130, Static123.parseInt(Static261.js5Archive13.getPercentageComplete() / 20 + 85), Static49.PERCENT_SIGN});
|
||||
Static126.mainLoadSecondaryText = JagString.concatenate(new JagString[] { LocalizedText.MAINLOAD130, Static123.parseInt(Static261.js5Archive13.getPercentageComplete() / 20 + 85), Static49.PERCENT_SIGN});
|
||||
Static199.mainLoadPercentage = 85;
|
||||
} else if (Static227.js5Archive23.allFilesComplete(Static165.DETAILS)) {
|
||||
Static234.method4018(Static173.aClass3_Sub2_Sub1_Sub1Array9, Static227.js5Archive23);
|
||||
} else if (js5Archive23.allFilesComplete(Static165.DETAILS)) {
|
||||
Static234.method4018(Sprites.mapfunctions, js5Archive23);
|
||||
Static199.mainLoadPercentage = 95;
|
||||
Static126.mainLoadSecondaryText = LocalizedText.MAINLOAD130B;
|
||||
Static166.mainLoadState = 135;
|
||||
} else {
|
||||
Static126.mainLoadSecondaryText = Static34.concatenate(new JagString[] { LocalizedText.MAINLOAD130, Static123.parseInt(Static227.js5Archive23.method4478(Static165.DETAILS) / 10 + 90), Static49.PERCENT_SIGN});
|
||||
Static126.mainLoadSecondaryText = JagString.concatenate(new JagString[] { LocalizedText.MAINLOAD130, Static123.parseInt(js5Archive23.getPercentageComplete(Static165.DETAILS) / 10 + 90), Static49.PERCENT_SIGN});
|
||||
Static199.mainLoadPercentage = 85;
|
||||
}
|
||||
} else if (Static166.mainLoadState == 135) {
|
||||
|
|
@ -929,18 +988,18 @@ public final class client extends GameShell {
|
|||
Static199.mainLoadPercentage = 97;
|
||||
Static126.mainLoadSecondaryText = LocalizedText.MAINLOAD140;
|
||||
Static166.mainLoadState = 150;
|
||||
Static107.clean = true;
|
||||
clean = true;
|
||||
} else if (Static166.mainLoadState == 150) {
|
||||
Static151.method2807();
|
||||
if (Static164.safeMode) {
|
||||
Static102.windowMode = 0;
|
||||
Static186.antiAliasingMode = 0;
|
||||
Static214.windowMode = 0;
|
||||
Static141.buildArea = 0;
|
||||
if (Preferences.safeMode) {
|
||||
Preferences.windowMode = 0;
|
||||
Preferences.antiAliasingMode = 0;
|
||||
Preferences.favoriteWorlds = 0;
|
||||
Preferences.buildArea = 0;
|
||||
}
|
||||
Static164.safeMode = true;
|
||||
Static203.savePreferences(GameShell.signLink);
|
||||
Static241.setWindowMode(false, Static214.windowMode, -1, -1);
|
||||
Preferences.safeMode = true;
|
||||
Preferences.write(GameShell.signLink);
|
||||
Static241.setWindowMode(false, Preferences.favoriteWorlds, -1, -1);
|
||||
Static199.mainLoadPercentage = 100;
|
||||
Static166.mainLoadState = 160;
|
||||
Static126.mainLoadSecondaryText = LocalizedText.MAINLOAD150B;
|
||||
|
|
@ -952,7 +1011,7 @@ public final class client extends GameShell {
|
|||
@OriginalMember(owner = "client!client", name = "a", descriptor = "(B)V")
|
||||
@Override
|
||||
protected final void mainLoop() {
|
||||
if (Static244.gameState == 1000) {
|
||||
if (gameState == 1000) {
|
||||
return;
|
||||
}
|
||||
Static83.loop++;
|
||||
|
|
@ -972,27 +1031,27 @@ public final class client extends GameShell {
|
|||
if (GlRenderer.enabled) {
|
||||
Static63.process();
|
||||
}
|
||||
if (Static71.mouseWheel != null) {
|
||||
@Pc(75) int wheelRotation = Static71.mouseWheel.getRotation();
|
||||
if (mouseWheel != null) {
|
||||
@Pc(75) int wheelRotation = mouseWheel.getRotation();
|
||||
Static58.wheelRotation = wheelRotation;
|
||||
}
|
||||
if (Static244.gameState == 0) {
|
||||
if (gameState == 0) {
|
||||
this.mainLoad();
|
||||
Static234.resetTimer();
|
||||
} else if (Static244.gameState == 5) {
|
||||
GameShell.resetTimer();
|
||||
} else if (gameState == 5) {
|
||||
this.mainLoad();
|
||||
Static234.resetTimer();
|
||||
} else if (Static244.gameState == 25 || Static244.gameState == 28) {
|
||||
GameShell.resetTimer();
|
||||
} else if (gameState == 25 || gameState == 28) {
|
||||
Static78.rebuildMap();
|
||||
}
|
||||
if (Static244.gameState == 10) {
|
||||
if (gameState == 10) {
|
||||
this.method943();
|
||||
Static158.loop();
|
||||
Static31.loopAuto();
|
||||
Static216.loop();
|
||||
} else if (Static244.gameState == 30) {
|
||||
} else if (gameState == 30) {
|
||||
Static81.method1756();
|
||||
} else if (Static244.gameState == 40) {
|
||||
} else if (gameState == 40) {
|
||||
Static216.loop();
|
||||
if (Static266.reply != -3) {
|
||||
if (Static266.reply == 15) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue