rs-client: refactoring (#1344)

* Rename some things to be more consistent everywhere

* rs-client: refactoring

* MenuAction -> MenuOpcode merge
This commit is contained in:
Lucwousin
2019-08-20 22:24:51 +02:00
committed by GitHub
parent 0f46656e9d
commit db705f5dd5
297 changed files with 13734 additions and 14043 deletions

View File

@@ -150,7 +150,8 @@ public class WorldMapIcon_1 extends AbstractWorldMapIcon {
signature = "(II)Lbj;",
garbageValue = "377219115"
)
static Message method297(int var0) {
@Export("Messages_getMessage")
static Message Messages_getMessage(int var0) {
return (Message)Messages.Messages_hashTable.get((long)var0);
}
@@ -170,7 +171,8 @@ public class WorldMapIcon_1 extends AbstractWorldMapIcon {
signature = "(IB)V",
garbageValue = "-42"
)
static void method296(int var0) {
@Export("getLoginError")
static void getLoginError(int var0) {
if (var0 == -3) {
class268.setLoginResponseString("Connection timed out.", "Please try using a different world.", "");
} else if (var0 == -2) {
@@ -235,24 +237,18 @@ public class WorldMapIcon_1 extends AbstractWorldMapIcon {
class268.setLoginResponseString("You need to vote to play!", "Visit runescape.com and vote,", "and then come back here!");
} else if (var0 == 55) {
Login.loginIndex = 8;
} else if (var0 == 56) {
class268.setLoginResponseString("Enter the 6-digit code generated by your", "authenticator app.", "");
class96.updateGameState(11);
return;
} else if (var0 == 57) {
class268.setLoginResponseString("The code you entered was incorrect.", "Please try again.", "");
class96.updateGameState(11);
return;
} else if (var0 == 61) {
Login.loginIndex = 7;
} else {
if (var0 == 56) {
class268.setLoginResponseString("Enter the 6-digit code generated by your", "authenticator app.", "");
class96.updateGameState(11);
return;
}
if (var0 == 57) {
class268.setLoginResponseString("The code you entered was incorrect.", "Please try again.", "");
class96.updateGameState(11);
return;
}
if (var0 == 61) {
Login.loginIndex = 7;
} else {
class268.setLoginResponseString("Unexpected server response", "Please try using a different world.", "");
}
class268.setLoginResponseString("Unexpected server response", "Please try using a different world.", "");
}
class96.updateGameState(10);