mirror of
https://github.com/TheEntropyShard/JDarkroom.git
synced 2024-12-23 10:33:45 +03:00
Corrected method name
This commit is contained in:
parent
f9e4b60533
commit
bbd3dfe47e
1 changed files with 2 additions and 2 deletions
|
@ -68,12 +68,12 @@ public enum Decoder {
|
|||
|
||||
public static String getGameInfo(byte[] bytes) {
|
||||
String resultLabel = I18N.getString("resultLabel");
|
||||
String[] internetCodes = Decoder.readInternetCode(bytes).split("_");
|
||||
String[] internetCodes = Decoder.readCode(bytes).split("_");
|
||||
String totalPlaytime = Decoder.readTotalPlaytime(bytes);
|
||||
return String.format(resultLabel, internetCodes[0], internetCodes[1], totalPlaytime);
|
||||
}
|
||||
|
||||
public static String readInternetCode(byte[] bytes) {
|
||||
public static String readCode(byte[] bytes) {
|
||||
int intCode = 0;
|
||||
intCode |= (bytes[8] & (0x1E000000 >> 25)) << 25;
|
||||
intCode |= (bytes[9] & (0x01000000 >> 19)) << 19;
|
||||
|
|
Loading…
Add table
Reference in a new issue