Buffer
This commit is contained in:
1 parent
cc40cc2c67
commit
24df71f922
31 files changed
+1400
-1418
No files matched your search
@@ -2,37 +2,35 @@
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3)
|
||||
|
||||
public class BZip2Deflator {
|
||||
public class BZip2 {
|
||||
|
||||
public static final BZip2Block A_BLOCK___305 = new BZip2Block();
|
||||
public static final BZip2Context context = new BZip2Context();
|
||||
|
||||
public static int method225(byte[] abyte0, int i, byte[] abyte1, int j, int k) {
|
||||
synchronized (A_BLOCK___305) {
|
||||
A_BLOCK___305.aByteArray563 = abyte1;
|
||||
A_BLOCK___305.anInt564 = k;
|
||||
A_BLOCK___305.aByteArray568 = abyte0;
|
||||
A_BLOCK___305.anInt569 = 0;
|
||||
A_BLOCK___305.anInt565 = j;
|
||||
A_BLOCK___305.anInt570 = i;
|
||||
A_BLOCK___305.anInt577 = 0;
|
||||
A_BLOCK___305.anInt576 = 0;
|
||||
A_BLOCK___305.anInt566 = 0;
|
||||
A_BLOCK___305.anInt567 = 0;
|
||||
A_BLOCK___305.anInt571 = 0;
|
||||
A_BLOCK___305.anInt572 = 0;
|
||||
A_BLOCK___305.anInt579 = 0;
|
||||
method227(A_BLOCK___305);
|
||||
i -= A_BLOCK___305.anInt570;
|
||||
return i;
|
||||
public static void inflate(byte[] abyte0, int i, byte[] abyte1, int j, int k) {
|
||||
synchronized (context) {
|
||||
context.aByteArray563 = abyte1;
|
||||
context.anInt564 = k;
|
||||
context.aByteArray568 = abyte0;
|
||||
context.anInt569 = 0;
|
||||
context.anInt565 = j;
|
||||
context.anInt570 = i;
|
||||
context.anInt577 = 0;
|
||||
context.anInt576 = 0;
|
||||
context.anInt566 = 0;
|
||||
context.anInt567 = 0;
|
||||
context.anInt571 = 0;
|
||||
context.anInt572 = 0;
|
||||
context.anInt579 = 0;
|
||||
method227(context);
|
||||
}
|
||||
}
|
||||
|
||||
public static void method226(BZip2Block block) {
|
||||
public static void method226(BZip2Context block) {
|
||||
byte byte4 = block.aByte573;
|
||||
int i = block.anInt574;
|
||||
int j = block.anInt584;
|
||||
int k = block.anInt582;
|
||||
int[] ai = BZip2Block.anIntArray587;
|
||||
int[] ai = BZip2Context.anIntArray587;
|
||||
int l = block.anInt581;
|
||||
byte[] abyte0 = block.aByteArray568;
|
||||
int i1 = block.anInt569;
|
||||
@@ -138,21 +136,21 @@ public class BZip2Deflator {
|
||||
block.anInt574 = i;
|
||||
block.anInt584 = j;
|
||||
block.anInt582 = k;
|
||||
BZip2Block.anIntArray587 = ai;
|
||||
BZip2Context.anIntArray587 = ai;
|
||||
block.anInt581 = l;
|
||||
block.aByteArray568 = abyte0;
|
||||
block.anInt569 = i1;
|
||||
block.anInt570 = j1;
|
||||
}
|
||||
|
||||
public static void method227(BZip2Block block) {
|
||||
public static void method227(BZip2Context block) {
|
||||
int k8 = 0;
|
||||
int[] ai = null;
|
||||
int[] ai1 = null;
|
||||
int[] ai2 = null;
|
||||
block.anInt578 = 1;
|
||||
if (BZip2Block.anIntArray587 == null) {
|
||||
BZip2Block.anIntArray587 = new int[block.anInt578 * 0x186a0];
|
||||
if (BZip2Context.anIntArray587 == null) {
|
||||
BZip2Context.anIntArray587 = new int[block.anInt578 * 0x186a0];
|
||||
}
|
||||
boolean flag19 = true;
|
||||
while (flag19) {
|
||||
@@ -325,7 +323,7 @@ public class BZip2Deflator {
|
||||
byte byte5 = block.aByteArray591[block.aByteArray592[block.anIntArray593[0]] & 0xff];
|
||||
block.anIntArray583[byte5 & 0xff] += j6;
|
||||
for (; j6 > 0; j6--) {
|
||||
BZip2Block.anIntArray587[i6] = byte5 & 0xff;
|
||||
BZip2Context.anIntArray587[i6] = byte5 & 0xff;
|
||||
i6++;
|
||||
}
|
||||
} else {
|
||||
@@ -372,7 +370,7 @@ public class BZip2Deflator {
|
||||
}
|
||||
}
|
||||
block.anIntArray583[block.aByteArray591[byte6 & 0xff] & 0xff]++;
|
||||
BZip2Block.anIntArray587[i6] = block.aByteArray591[byte6 & 0xff] & 0xff;
|
||||
BZip2Context.anIntArray587[i6] = block.aByteArray591[byte6 & 0xff] & 0xff;
|
||||
i6++;
|
||||
if (j5 == 0) {
|
||||
i5++;
|
||||
@@ -404,13 +402,13 @@ public class BZip2Deflator {
|
||||
block.anIntArray585[k2] += block.anIntArray585[k2 - 1];
|
||||
}
|
||||
for (int l2 = 0; l2 < i6; l2++) {
|
||||
byte byte7 = (byte) (BZip2Block.anIntArray587[l2] & 0xff);
|
||||
BZip2Block.anIntArray587[block.anIntArray585[byte7 & 0xff]] |= l2 << 8;
|
||||
byte byte7 = (byte) (BZip2Context.anIntArray587[l2] & 0xff);
|
||||
BZip2Context.anIntArray587[block.anIntArray585[byte7 & 0xff]] |= l2 << 8;
|
||||
block.anIntArray585[byte7 & 0xff]++;
|
||||
}
|
||||
block.anInt581 = BZip2Block.anIntArray587[block.anInt580] >> 8;
|
||||
block.anInt581 = BZip2Context.anIntArray587[block.anInt580] >> 8;
|
||||
block.anInt584 = 0;
|
||||
block.anInt581 = BZip2Block.anIntArray587[block.anInt581];
|
||||
block.anInt581 = BZip2Context.anIntArray587[block.anInt581];
|
||||
block.anInt582 = (byte) (block.anInt581 & 0xff);
|
||||
block.anInt581 >>= 8;
|
||||
block.anInt584++;
|
||||
@@ -420,15 +418,15 @@ public class BZip2Deflator {
|
||||
}
|
||||
}
|
||||
|
||||
public static byte method228(BZip2Block block) {
|
||||
public static byte method228(BZip2Context block) {
|
||||
return (byte) method230(8, block);
|
||||
}
|
||||
|
||||
public static byte method229(BZip2Block block) {
|
||||
public static byte method229(BZip2Context block) {
|
||||
return (byte) method230(1, block);
|
||||
}
|
||||
|
||||
public static int method230(int i, BZip2Block block) {
|
||||
public static int method230(int i, BZip2Context block) {
|
||||
int j;
|
||||
do {
|
||||
if (block.anInt577 >= i) {
|
||||
@@ -449,7 +447,7 @@ public class BZip2Deflator {
|
||||
return j;
|
||||
}
|
||||
|
||||
public static void method231(BZip2Block block) {
|
||||
public static void method231(BZip2Context block) {
|
||||
block.anInt588 = 0;
|
||||
for (int i = 0; i < 256; i++) {
|
||||
if (block.aBooleanArray589[i]) {
|
||||
@@ -2,7 +2,7 @@
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3)
|
||||
|
||||
public class BZip2Block {
|
||||
public class BZip2Context {
|
||||
|
||||
public static int[] anIntArray587;
|
||||
public byte[] aByteArray563;
|
||||
@@ -43,7 +43,7 @@ public class BZip2Block {
|
||||
public final int[] anIntArray600 = new int[6];
|
||||
public int anInt601;
|
||||
|
||||
public BZip2Block() {
|
||||
public BZip2Context() {
|
||||
}
|
||||
|
||||
}
|
||||
@@ -17,29 +17,29 @@ public class BitmapFont extends Draw2D {
|
||||
public boolean aBoolean1499 = false;
|
||||
|
||||
public BitmapFont(boolean flag, String s, FileArchive archive) {
|
||||
Buffer buffer = new Buffer(archive.method571(s + ".dat", null));
|
||||
Buffer buffer_1 = new Buffer(archive.method571("index.dat", null));
|
||||
buffer_1.position = buffer.method410() + 4;
|
||||
int k = buffer_1.method408();
|
||||
Buffer buffer = new Buffer(archive.read(s + ".dat", null));
|
||||
Buffer buffer_1 = new Buffer(archive.read("index.dat", null));
|
||||
buffer_1.position = buffer.getU16() + 4;
|
||||
int k = buffer_1.getU8();
|
||||
if (k > 0) {
|
||||
buffer_1.position += 3 * (k - 1);
|
||||
}
|
||||
for (int l = 0; l < 256; l++) {
|
||||
anIntArray1494[l] = buffer_1.method408();
|
||||
anIntArray1495[l] = buffer_1.method408();
|
||||
int i1 = anIntArray1492[l] = buffer_1.method410();
|
||||
int j1 = anIntArray1493[l] = buffer_1.method410();
|
||||
int k1 = buffer_1.method408();
|
||||
anIntArray1494[l] = buffer_1.getU8();
|
||||
anIntArray1495[l] = buffer_1.getU8();
|
||||
int i1 = anIntArray1492[l] = buffer_1.getU16();
|
||||
int j1 = anIntArray1493[l] = buffer_1.getU16();
|
||||
int k1 = buffer_1.getU8();
|
||||
int l1 = i1 * j1;
|
||||
aByteArrayArray1491[l] = new byte[l1];
|
||||
if (k1 == 0) {
|
||||
for (int i2 = 0; i2 < l1; i2++) {
|
||||
aByteArrayArray1491[l][i2] = buffer.method409();
|
||||
aByteArrayArray1491[l][i2] = buffer.get8();
|
||||
}
|
||||
} else if (k1 == 1) {
|
||||
for (int j2 = 0; j2 < i1; j2++) {
|
||||
for (int l2 = 0; l2 < j1; l2++) {
|
||||
aByteArrayArray1491[l][j2 + (l2 * i1)] = buffer.method409();
|
||||
aByteArrayArray1491[l][j2 + (l2 * i1)] = buffer.get8();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+241
-264
@@ -6,352 +6,329 @@ import java.math.BigInteger;
|
||||
|
||||
public class Buffer extends DoublyLinkedListNode {
|
||||
|
||||
public static final int[] anIntArray1409 = {0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535, 0x1ffff, 0x3ffff, 0x7ffff, 0xfffff, 0x1fffff, 0x3fffff, 0x7fffff, 0xffffff, 0x1ffffff, 0x3ffffff, 0x7ffffff, 0xfffffff, 0x1fffffff, 0x3fffffff, 0x7fffffff, -1};
|
||||
public static final LinkedList A_LIST___1414 = new LinkedList();
|
||||
public static final LinkedList A_LIST___1415 = new LinkedList();
|
||||
public static final LinkedList A_LIST___1416 = new LinkedList();
|
||||
public static final int[] anIntArray1408;
|
||||
public static int anInt1411;
|
||||
public static int anInt1412;
|
||||
public static int anInt1413;
|
||||
public static final LinkedList bufferPool0 = new LinkedList();
|
||||
public static final LinkedList bufferPool1 = new LinkedList();
|
||||
public static final LinkedList bufferPool2 = new LinkedList();
|
||||
private static final int[] BITMASK = {0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535, 0x1ffff, 0x3ffff, 0x7ffff, 0xfffff, 0x1fffff, 0x3fffff, 0x7fffff, 0xffffff, 0x1ffffff, 0x3ffffff, 0x7ffffff, 0xfffffff, 0x1fffffff, 0x3fffffff, 0x7fffffff, -1};
|
||||
public static int bufferPoolSize0;
|
||||
public static int bufferPoolSize1;
|
||||
public static int bufferPoolSize2;
|
||||
|
||||
static {
|
||||
anIntArray1408 = new int[256];
|
||||
for (int j = 0; j < 256; j++) {
|
||||
int i = j;
|
||||
for (int k = 0; k < 8; k++) {
|
||||
if ((i & 1) == 1) {
|
||||
i = (i >>> 1) ^ 0xedb88320;
|
||||
} else {
|
||||
i >>>= 1;
|
||||
}
|
||||
public static Buffer create(int sizeType) {
|
||||
synchronized (bufferPool1) {
|
||||
Buffer buffer = null;
|
||||
if ((sizeType == 0) && (bufferPoolSize0 > 0)) {
|
||||
bufferPoolSize0--;
|
||||
buffer = (Buffer) bufferPool0.method251();
|
||||
} else if ((sizeType == 1) && (bufferPoolSize1 > 0)) {
|
||||
bufferPoolSize1--;
|
||||
buffer = (Buffer) bufferPool1.method251();
|
||||
} else if ((sizeType == 2) && (bufferPoolSize2 > 0)) {
|
||||
bufferPoolSize2--;
|
||||
buffer = (Buffer) bufferPool2.method251();
|
||||
}
|
||||
if (buffer != null) {
|
||||
buffer.position = 0;
|
||||
return buffer;
|
||||
}
|
||||
anIntArray1408[j] = i;
|
||||
}
|
||||
Buffer buffer = new Buffer();
|
||||
buffer.position = 0;
|
||||
if (sizeType == 0) {
|
||||
buffer.data = new byte[100];
|
||||
} else if (sizeType == 1) {
|
||||
buffer.data = new byte[5000];
|
||||
} else {
|
||||
buffer.data = new byte[30000];
|
||||
}
|
||||
return buffer;
|
||||
}
|
||||
|
||||
public byte[] aByteArray1405;
|
||||
public byte[] data;
|
||||
public int position;
|
||||
public int anInt1407;
|
||||
public ISAACCipher aISAACCipher_1410;
|
||||
public int bitPosition;
|
||||
public ISAACCipher cipher;
|
||||
|
||||
public Buffer() {
|
||||
}
|
||||
|
||||
public Buffer(byte[] abyte0) {
|
||||
aByteArray1405 = abyte0;
|
||||
public Buffer(byte[] src) {
|
||||
data = src;
|
||||
position = 0;
|
||||
}
|
||||
|
||||
public static Buffer method396(int i) {
|
||||
synchronized (A_LIST___1415) {
|
||||
Buffer class30_sub2_sub2_2 = null;
|
||||
if ((i == 0) && (anInt1411 > 0)) {
|
||||
anInt1411--;
|
||||
class30_sub2_sub2_2 = (Buffer) A_LIST___1414.method251();
|
||||
} else if ((i == 1) && (anInt1412 > 0)) {
|
||||
anInt1412--;
|
||||
class30_sub2_sub2_2 = (Buffer) A_LIST___1415.method251();
|
||||
} else if ((i == 2) && (anInt1413 > 0)) {
|
||||
anInt1413--;
|
||||
class30_sub2_sub2_2 = (Buffer) A_LIST___1416.method251();
|
||||
}
|
||||
if (class30_sub2_sub2_2 != null) {
|
||||
class30_sub2_sub2_2.position = 0;
|
||||
return class30_sub2_sub2_2;
|
||||
}
|
||||
}
|
||||
Buffer buffer_1 = new Buffer();
|
||||
buffer_1.position = 0;
|
||||
if (i == 0) {
|
||||
buffer_1.aByteArray1405 = new byte[100];
|
||||
} else if (i == 1) {
|
||||
buffer_1.aByteArray1405 = new byte[5000];
|
||||
} else {
|
||||
buffer_1.aByteArray1405 = new byte[30000];
|
||||
}
|
||||
return buffer_1;
|
||||
public void putOp(int i) {
|
||||
data[position++] = (byte) (i + cipher.method246());
|
||||
}
|
||||
|
||||
public void method397(int i) {
|
||||
aByteArray1405[position++] = (byte) (i + aISAACCipher_1410.method246());
|
||||
public void putSize8(int i) {
|
||||
data[position - i - 1] = (byte) i;
|
||||
}
|
||||
|
||||
public void method398(int i) {
|
||||
aByteArray1405[position++] = (byte) i;
|
||||
public void put8(int i) {
|
||||
data[position++] = (byte) i;
|
||||
}
|
||||
|
||||
public void method399(int i) {
|
||||
aByteArray1405[position++] = (byte) (i >> 8);
|
||||
aByteArray1405[position++] = (byte) i;
|
||||
public void put8C(int i) {
|
||||
data[position++] = (byte) (-i);
|
||||
}
|
||||
|
||||
public void method400(int i) {
|
||||
aByteArray1405[position++] = (byte) i;
|
||||
aByteArray1405[position++] = (byte) (i >> 8);
|
||||
public void put8S(int j) {
|
||||
data[position++] = (byte) (128 - j);
|
||||
}
|
||||
|
||||
public void method401(int i) {
|
||||
aByteArray1405[position++] = (byte) (i >> 16);
|
||||
aByteArray1405[position++] = (byte) (i >> 8);
|
||||
aByteArray1405[position++] = (byte) i;
|
||||
public void put16(int i) {
|
||||
data[position++] = (byte) (i >> 8);
|
||||
data[position++] = (byte) i;
|
||||
}
|
||||
|
||||
public void method402(int i) {
|
||||
aByteArray1405[position++] = (byte) (i >> 24);
|
||||
aByteArray1405[position++] = (byte) (i >> 16);
|
||||
aByteArray1405[position++] = (byte) (i >> 8);
|
||||
aByteArray1405[position++] = (byte) i;
|
||||
public void put16A(int j) {
|
||||
data[position++] = (byte) (j >> 8);
|
||||
data[position++] = (byte) (j + 128);
|
||||
}
|
||||
|
||||
public void method403(int j) {
|
||||
aByteArray1405[position++] = (byte) j;
|
||||
aByteArray1405[position++] = (byte) (j >> 8);
|
||||
aByteArray1405[position++] = (byte) (j >> 16);
|
||||
aByteArray1405[position++] = (byte) (j >> 24);
|
||||
public void put16LE(int i) {
|
||||
data[position++] = (byte) i;
|
||||
data[position++] = (byte) (i >> 8);
|
||||
}
|
||||
|
||||
public void method404(long l) {
|
||||
aByteArray1405[position++] = (byte) (int) (l >> 56);
|
||||
aByteArray1405[position++] = (byte) (int) (l >> 48);
|
||||
aByteArray1405[position++] = (byte) (int) (l >> 40);
|
||||
aByteArray1405[position++] = (byte) (int) (l >> 32);
|
||||
aByteArray1405[position++] = (byte) (int) (l >> 24);
|
||||
aByteArray1405[position++] = (byte) (int) (l >> 16);
|
||||
aByteArray1405[position++] = (byte) (int) (l >> 8);
|
||||
aByteArray1405[position++] = (byte) (int) l;
|
||||
public void put16LEA(int j) {
|
||||
data[position++] = (byte) (j + 128);
|
||||
data[position++] = (byte) (j >> 8);
|
||||
}
|
||||
|
||||
public void method405(String s) {
|
||||
s.getBytes(0, s.length(), aByteArray1405, position);
|
||||
public void put24(int i) {
|
||||
data[position++] = (byte) (i >> 16);
|
||||
data[position++] = (byte) (i >> 8);
|
||||
data[position++] = (byte) i;
|
||||
}
|
||||
|
||||
public void put32(int i) {
|
||||
data[position++] = (byte) (i >> 24);
|
||||
data[position++] = (byte) (i >> 16);
|
||||
data[position++] = (byte) (i >> 8);
|
||||
data[position++] = (byte) i;
|
||||
}
|
||||
|
||||
public void put32LE(int j) {
|
||||
data[position++] = (byte) j;
|
||||
data[position++] = (byte) (j >> 8);
|
||||
data[position++] = (byte) (j >> 16);
|
||||
data[position++] = (byte) (j >> 24);
|
||||
}
|
||||
|
||||
public void put64(long l) {
|
||||
data[position++] = (byte) (int) (l >> 56);
|
||||
data[position++] = (byte) (int) (l >> 48);
|
||||
data[position++] = (byte) (int) (l >> 40);
|
||||
data[position++] = (byte) (int) (l >> 32);
|
||||
data[position++] = (byte) (int) (l >> 24);
|
||||
data[position++] = (byte) (int) (l >> 16);
|
||||
data[position++] = (byte) (int) (l >> 8);
|
||||
data[position++] = (byte) (int) l;
|
||||
}
|
||||
|
||||
public void putString(String s) {
|
||||
s.getBytes(0, s.length(), data, position);
|
||||
position += s.length();
|
||||
aByteArray1405[position++] = 10;
|
||||
data[position++] = 10;
|
||||
}
|
||||
|
||||
public void method406(byte[] abyte0, int i, int j) {
|
||||
for (int k = j; k < (j + i); k++) {
|
||||
aByteArray1405[position++] = abyte0[k];
|
||||
public void putBytes(byte[] src, int len, int off) {
|
||||
for (int k = off; k < (off + len); k++) {
|
||||
data[position++] = src[k];
|
||||
}
|
||||
}
|
||||
|
||||
public void method407(int i) {
|
||||
aByteArray1405[position - i - 1] = (byte) i;
|
||||
public void putBytesA(int off, byte[] src, int len) {
|
||||
for (int i = (off + len) - 1; i >= off; i--) {
|
||||
data[position++] = (byte) (src[i] + 128);
|
||||
}
|
||||
}
|
||||
|
||||
public int method408() {
|
||||
return aByteArray1405[position++] & 0xff;
|
||||
public byte get8() {
|
||||
return data[position++];
|
||||
}
|
||||
|
||||
public byte method409() {
|
||||
return aByteArray1405[position++];
|
||||
public byte get8C() {
|
||||
return (byte) (-data[position++]);
|
||||
}
|
||||
|
||||
public int method410() {
|
||||
public byte get8S() {
|
||||
return (byte) (128 - data[position++]);
|
||||
}
|
||||
|
||||
public int getU8() {
|
||||
return data[position++] & 0xff;
|
||||
}
|
||||
|
||||
public int getU8A() {
|
||||
return (data[position++] - 128) & 0xff;
|
||||
}
|
||||
|
||||
public int getU8C() {
|
||||
return -data[position++] & 0xff;
|
||||
}
|
||||
|
||||
public int getU8S() {
|
||||
return (128 - data[position++]) & 0xff;
|
||||
}
|
||||
|
||||
public int getSmart() {
|
||||
int i = data[position] & 0xff;
|
||||
if (i < 0x80) {
|
||||
return getU8() - 0x40;
|
||||
} else {
|
||||
return getU16() - 0xc000;
|
||||
}
|
||||
}
|
||||
|
||||
public int getUSmart() {
|
||||
int i = data[position] & 0xff;
|
||||
if (i < 0x80) {
|
||||
return getU8();
|
||||
} else {
|
||||
return getU16() - 0x7fff;
|
||||
}
|
||||
}
|
||||
|
||||
public int getU16() {
|
||||
position += 2;
|
||||
return ((aByteArray1405[position - 2] & 0xff) << 8) + (aByteArray1405[position - 1] & 0xff);
|
||||
return ((data[position - 2] & 0xff) << 8) + (data[position - 1] & 0xff);
|
||||
}
|
||||
|
||||
public int method411() {
|
||||
public int getU16A() {
|
||||
position += 2;
|
||||
int i = ((aByteArray1405[position - 2] & 0xff) << 8) + (aByteArray1405[position - 1] & 0xff);
|
||||
if (i > 32767) {
|
||||
return ((data[position - 2] & 0xff) << 8) + ((data[position - 1] - 128) & 0xff);
|
||||
}
|
||||
|
||||
public int getU16LE() {
|
||||
position += 2;
|
||||
return ((data[position - 1] & 0xff) << 8) + (data[position - 2] & 0xff);
|
||||
}
|
||||
|
||||
public int getU16LEA() {
|
||||
position += 2;
|
||||
return ((data[position - 1] & 0xff) << 8) + ((data[position - 2] - 128) & 0xff);
|
||||
}
|
||||
|
||||
public int get16() {
|
||||
position += 2;
|
||||
int i = ((data[position - 2] & 0xff) << 8) + (data[position - 1] & 0xff);
|
||||
if (i > 0x7fff) {
|
||||
i -= 0x10000;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
public int method412() {
|
||||
public int get16LE() {
|
||||
position += 2;
|
||||
int j = ((data[position - 1] & 0xff) << 8) + (data[position - 2] & 0xff);
|
||||
if (j > 0x7fff) {
|
||||
j -= 0x10000;
|
||||
}
|
||||
return j;
|
||||
}
|
||||
|
||||
public int get16LEA() {
|
||||
position += 2;
|
||||
int j = ((data[position - 1] & 0xff) << 8) + ((data[position - 2] - 128) & 0xff);
|
||||
if (j > 0x7fff) {
|
||||
j -= 0x10000;
|
||||
}
|
||||
return j;
|
||||
}
|
||||
|
||||
public int get24() {
|
||||
position += 3;
|
||||
return ((aByteArray1405[position - 3] & 0xff) << 16) + ((aByteArray1405[position - 2] & 0xff) << 8) + (aByteArray1405[position - 1] & 0xff);
|
||||
return ((data[position - 3] & 0xff) << 16) + ((data[position - 2] & 0xff) << 8) + (data[position - 1] & 0xff);
|
||||
}
|
||||
|
||||
public int method413() {
|
||||
public int get32() {
|
||||
position += 4;
|
||||
return ((aByteArray1405[position - 4] & 0xff) << 24) + ((aByteArray1405[position - 3] & 0xff) << 16) + ((aByteArray1405[position - 2] & 0xff) << 8) + (aByteArray1405[position - 1] & 0xff);
|
||||
return ((data[position - 4] & 0xff) << 24) + ((data[position - 3] & 0xff) << 16) + ((data[position - 2] & 0xff) << 8) + (data[position - 1] & 0xff);
|
||||
}
|
||||
|
||||
public long method414() {
|
||||
long l = (long) method413() & 0xffffffffL;
|
||||
long l1 = (long) method413() & 0xffffffffL;
|
||||
public int get32ME() {
|
||||
position += 4;
|
||||
return ((data[position - 3] & 0xff) << 24) + ((data[position - 4] & 0xff) << 16) + ((data[position - 1] & 0xff) << 8) + (data[position - 2] & 0xff);
|
||||
}
|
||||
|
||||
public int get32RME() {
|
||||
position += 4;
|
||||
return ((data[position - 2] & 0xff) << 24) + ((data[position - 1] & 0xff) << 16) + ((data[position - 4] & 0xff) << 8) + (data[position - 3] & 0xff);
|
||||
}
|
||||
|
||||
public long get64() {
|
||||
long l = (long) get32() & 0xffffffffL;
|
||||
long l1 = (long) get32() & 0xffffffffL;
|
||||
return (l << 32) + l1;
|
||||
}
|
||||
|
||||
public String method415() {
|
||||
int i = position;
|
||||
while (aByteArray1405[position++] != 10) {
|
||||
public String getString() {
|
||||
int start = position;
|
||||
while (data[position++] != '\n') {
|
||||
}
|
||||
return new String(aByteArray1405, i, position - i - 1);
|
||||
return new String(data, start, position - start - 1);
|
||||
}
|
||||
|
||||
public byte[] method416() {
|
||||
int i = position;
|
||||
while (aByteArray1405[position++] != 10) {
|
||||
public byte[] getStringBytes() {
|
||||
int start = position;
|
||||
while (data[position++] != '\n') {
|
||||
}
|
||||
byte[] abyte0 = new byte[position - i - 1];
|
||||
for (int j = i; j < (position - 1); j++) {
|
||||
abyte0[j - i] = aByteArray1405[j];
|
||||
byte[] raw = new byte[position - start - 1];
|
||||
for (int j = start; j < (position - 1); j++) {
|
||||
raw[j - start] = data[j];
|
||||
}
|
||||
return abyte0;
|
||||
return raw;
|
||||
}
|
||||
|
||||
public void method417(int i, int j, byte[] abyte0) {
|
||||
for (int l = j; l < (j + i); l++) {
|
||||
abyte0[l] = aByteArray1405[position++];
|
||||
public void getBytes(byte[] dst, int off, int len) {
|
||||
for (int i = off; i < (off + len); i++) {
|
||||
dst[i] = data[position++];
|
||||
}
|
||||
}
|
||||
|
||||
public void method418() {
|
||||
anInt1407 = position * 8;
|
||||
public void getBytesReversed(byte[] dst, int off, int len) {
|
||||
for (int i = (off + len) - 1; i >= off; i--) {
|
||||
dst[i] = data[position++];
|
||||
}
|
||||
}
|
||||
|
||||
public int method419(int i) {
|
||||
int k = anInt1407 >> 3;
|
||||
int l = 8 - (anInt1407 & 7);
|
||||
int i1 = 0;
|
||||
anInt1407 += i;
|
||||
for (; i > l; l = 8) {
|
||||
i1 += (aByteArray1405[k++] & anIntArray1409[l]) << (i - l);
|
||||
i -= l;
|
||||
public void accessBits() {
|
||||
bitPosition = position * 8;
|
||||
}
|
||||
|
||||
public int getN(int n) {
|
||||
int bytePos = bitPosition >> 3;
|
||||
int remaining = 8 - (bitPosition & 7);
|
||||
int value = 0;
|
||||
bitPosition += n;
|
||||
for (; n > remaining; remaining = 8) {
|
||||
value += (data[bytePos++] & BITMASK[remaining]) << (n - remaining);
|
||||
n -= remaining;
|
||||
}
|
||||
if (i == l) {
|
||||
i1 += aByteArray1405[k] & anIntArray1409[l];
|
||||
if (n == remaining) {
|
||||
value += data[bytePos] & BITMASK[remaining];
|
||||
} else {
|
||||
i1 += (aByteArray1405[k] >> (l - i)) & anIntArray1409[i];
|
||||
value += (data[bytePos] >> (remaining - n)) & BITMASK[n];
|
||||
}
|
||||
return i1;
|
||||
return value;
|
||||
}
|
||||
|
||||
public void method420() {
|
||||
position = (anInt1407 + 7) / 8;
|
||||
public void accessBytes() {
|
||||
position = (bitPosition + 7) / 8;
|
||||
}
|
||||
|
||||
public int method421() {
|
||||
int i = aByteArray1405[position] & 0xff;
|
||||
if (i < 128) {
|
||||
return method408() - 64;
|
||||
} else {
|
||||
return method410() - 49152;
|
||||
}
|
||||
}
|
||||
|
||||
public int method422() {
|
||||
int i = aByteArray1405[position] & 0xff;
|
||||
if (i < 128) {
|
||||
return method408();
|
||||
} else {
|
||||
return method410() - 32768;
|
||||
}
|
||||
}
|
||||
|
||||
public void method423(BigInteger biginteger, BigInteger biginteger1) {
|
||||
int i = position;
|
||||
public void encrypt(BigInteger exponent, BigInteger modulus) {
|
||||
int length = position;
|
||||
position = 0;
|
||||
byte[] abyte0 = new byte[i];
|
||||
method417(i, 0, abyte0);
|
||||
BigInteger biginteger2 = new BigInteger(abyte0);
|
||||
BigInteger biginteger3 = biginteger2.modPow(biginteger, biginteger1);
|
||||
byte[] abyte1 = biginteger3.toByteArray();
|
||||
byte[] raw = new byte[length];
|
||||
getBytes(raw, 0, length);
|
||||
byte[] encrypted = new BigInteger(raw).modPow(exponent, modulus).toByteArray();
|
||||
position = 0;
|
||||
method398(abyte1.length);
|
||||
method406(abyte1, abyte1.length, 0);
|
||||
}
|
||||
|
||||
public void method424(int i) {
|
||||
aByteArray1405[position++] = (byte) (-i);
|
||||
}
|
||||
|
||||
public void method425(int j) {
|
||||
aByteArray1405[position++] = (byte) (128 - j);
|
||||
}
|
||||
|
||||
public int method426() {
|
||||
return (aByteArray1405[position++] - 128) & 0xff;
|
||||
}
|
||||
|
||||
public int method427() {
|
||||
return -aByteArray1405[position++] & 0xff;
|
||||
}
|
||||
|
||||
public int method428() {
|
||||
return (128 - aByteArray1405[position++]) & 0xff;
|
||||
}
|
||||
|
||||
public byte method429() {
|
||||
return (byte) (-aByteArray1405[position++]);
|
||||
}
|
||||
|
||||
public byte method430() {
|
||||
return (byte) (128 - aByteArray1405[position++]);
|
||||
}
|
||||
|
||||
public void method431(int i) {
|
||||
aByteArray1405[position++] = (byte) i;
|
||||
aByteArray1405[position++] = (byte) (i >> 8);
|
||||
}
|
||||
|
||||
public void method432(int j) {
|
||||
aByteArray1405[position++] = (byte) (j >> 8);
|
||||
aByteArray1405[position++] = (byte) (j + 128);
|
||||
}
|
||||
|
||||
public void method433(int j) {
|
||||
aByteArray1405[position++] = (byte) (j + 128);
|
||||
aByteArray1405[position++] = (byte) (j >> 8);
|
||||
}
|
||||
|
||||
public int method434() {
|
||||
position += 2;
|
||||
return ((aByteArray1405[position - 1] & 0xff) << 8) + (aByteArray1405[position - 2] & 0xff);
|
||||
}
|
||||
|
||||
public int method435() {
|
||||
position += 2;
|
||||
return ((aByteArray1405[position - 2] & 0xff) << 8) + ((aByteArray1405[position - 1] - 128) & 0xff);
|
||||
}
|
||||
|
||||
public int method436() {
|
||||
position += 2;
|
||||
return ((aByteArray1405[position - 1] & 0xff) << 8) + ((aByteArray1405[position - 2] - 128) & 0xff);
|
||||
}
|
||||
|
||||
public int method437() {
|
||||
position += 2;
|
||||
int j = ((aByteArray1405[position - 1] & 0xff) << 8) + (aByteArray1405[position - 2] & 0xff);
|
||||
if (j > 32767) {
|
||||
j -= 0x10000;
|
||||
}
|
||||
return j;
|
||||
}
|
||||
|
||||
public int method438() {
|
||||
position += 2;
|
||||
int j = ((aByteArray1405[position - 1] & 0xff) << 8) + ((aByteArray1405[position - 2] - 128) & 0xff);
|
||||
if (j > 32767) {
|
||||
j -= 0x10000;
|
||||
}
|
||||
return j;
|
||||
}
|
||||
|
||||
public int method439() {
|
||||
position += 4;
|
||||
return ((aByteArray1405[position - 2] & 0xff) << 24) + ((aByteArray1405[position - 1] & 0xff) << 16) + ((aByteArray1405[position - 4] & 0xff) << 8) + (aByteArray1405[position - 3] & 0xff);
|
||||
}
|
||||
|
||||
public int method440() {
|
||||
position += 4;
|
||||
return ((aByteArray1405[position - 3] & 0xff) << 24) + ((aByteArray1405[position - 4] & 0xff) << 16) + ((aByteArray1405[position - 1] & 0xff) << 8) + (aByteArray1405[position - 2] & 0xff);
|
||||
}
|
||||
|
||||
public void method441(int i, byte[] abyte0, int j) {
|
||||
for (int k = (i + j) - 1; k >= i; k--) {
|
||||
aByteArray1405[position++] = (byte) (abyte0[k] + 128);
|
||||
}
|
||||
}
|
||||
|
||||
public void method442(int i, int j, byte[] abyte0) {
|
||||
for (int k = (j + i) - 1; k >= j; k--) {
|
||||
abyte0[k] = aByteArray1405[position++];
|
||||
}
|
||||
put8(encrypted.length);
|
||||
putBytes(encrypted, encrypted.length, 0);
|
||||
}
|
||||
|
||||
}
|
||||
+19
-19
@@ -13,10 +13,10 @@ public class Censor {
|
||||
public static int[] anIntArray625;
|
||||
|
||||
public static void method487(FileArchive archive) {
|
||||
Buffer buffer = new Buffer(archive.method571("fragmentsenc.txt", null));
|
||||
Buffer buffer_1 = new Buffer(archive.method571("badenc.txt", null));
|
||||
Buffer class30_sub2_sub2_2 = new Buffer(archive.method571("domainenc.txt", null));
|
||||
Buffer buffer_3 = new Buffer(archive.method571("tldlist.txt", null));
|
||||
Buffer buffer = new Buffer(archive.read("fragmentsenc.txt", null));
|
||||
Buffer buffer_1 = new Buffer(archive.read("badenc.txt", null));
|
||||
Buffer class30_sub2_sub2_2 = new Buffer(archive.read("domainenc.txt", null));
|
||||
Buffer buffer_3 = new Buffer(archive.read("tldlist.txt", null));
|
||||
method488(buffer, buffer_1, class30_sub2_sub2_2, buffer_3);
|
||||
}
|
||||
|
||||
@@ -28,50 +28,50 @@ public class Censor {
|
||||
}
|
||||
|
||||
public static void method489(Buffer buffer) {
|
||||
int i = buffer.method413();
|
||||
int i = buffer.get32();
|
||||
aCharArrayArray624 = new char[i][];
|
||||
anIntArray625 = new int[i];
|
||||
for (int j = 0; j < i; j++) {
|
||||
anIntArray625[j] = buffer.method408();
|
||||
char[] ac = new char[buffer.method408()];
|
||||
anIntArray625[j] = buffer.getU8();
|
||||
char[] ac = new char[buffer.getU8()];
|
||||
for (int k = 0; k < ac.length; k++) {
|
||||
ac[k] = (char) buffer.method408();
|
||||
ac[k] = (char) buffer.getU8();
|
||||
}
|
||||
aCharArrayArray624[j] = ac;
|
||||
}
|
||||
}
|
||||
|
||||
public static void method490(Buffer buffer) {
|
||||
int j = buffer.method413();
|
||||
int j = buffer.get32();
|
||||
aCharArrayArray621 = new char[j][];
|
||||
aByteArrayArrayArray622 = new byte[j][][];
|
||||
method493(buffer, aCharArrayArray621, aByteArrayArrayArray622);
|
||||
}
|
||||
|
||||
public static void method491(Buffer buffer) {
|
||||
int i = buffer.method413();
|
||||
int i = buffer.get32();
|
||||
aCharArrayArray623 = new char[i][];
|
||||
method494(aCharArrayArray623, buffer, -490);
|
||||
}
|
||||
|
||||
public static void method492(Buffer buffer) {
|
||||
anIntArray620 = new int[buffer.method413()];
|
||||
anIntArray620 = new int[buffer.get32()];
|
||||
for (int i = 0; i < anIntArray620.length; i++) {
|
||||
anIntArray620[i] = buffer.method410();
|
||||
anIntArray620[i] = buffer.getU16();
|
||||
}
|
||||
}
|
||||
|
||||
public static void method493(Buffer buffer, char[][] ac, byte[][][] abyte0) {
|
||||
for (int j = 0; j < ac.length; j++) {
|
||||
char[] ac1 = new char[buffer.method408()];
|
||||
char[] ac1 = new char[buffer.getU8()];
|
||||
for (int k = 0; k < ac1.length; k++) {
|
||||
ac1[k] = (char) buffer.method408();
|
||||
ac1[k] = (char) buffer.getU8();
|
||||
}
|
||||
ac[j] = ac1;
|
||||
byte[][] abyte1 = new byte[buffer.method408()][2];
|
||||
byte[][] abyte1 = new byte[buffer.getU8()][2];
|
||||
for (int l = 0; l < abyte1.length; l++) {
|
||||
abyte1[l][0] = (byte) buffer.method408();
|
||||
abyte1[l][1] = (byte) buffer.method408();
|
||||
abyte1[l][0] = (byte) buffer.getU8();
|
||||
abyte1[l][1] = (byte) buffer.getU8();
|
||||
}
|
||||
if (abyte1.length > 0) {
|
||||
abyte0[j] = abyte1;
|
||||
@@ -84,9 +84,9 @@ public class Censor {
|
||||
return;
|
||||
}
|
||||
for (int j = 0; j < ac.length; j++) {
|
||||
char[] ac1 = new char[buffer.method408()];
|
||||
char[] ac1 = new char[buffer.getU8()];
|
||||
for (int k = 0; k < ac1.length; k++) {
|
||||
ac1[k] = (char) buffer.method408();
|
||||
ac1[k] = (char) buffer.getU8();
|
||||
}
|
||||
ac[j] = ac1;
|
||||
}
|
||||
|
||||
@@ -74,86 +74,86 @@ public class Component {
|
||||
|
||||
public static void method205(FileArchive archive, BitmapFont[] aclass30_sub2_sub1_sub4, FileArchive archive_1) {
|
||||
aCache_238 = new LRUCache(50000);
|
||||
Buffer buffer = new Buffer(archive.method571("data", null));
|
||||
Buffer buffer = new Buffer(archive.read("data", null));
|
||||
int i = -1;
|
||||
int j = buffer.method410();
|
||||
int j = buffer.getU16();
|
||||
aComponentArray210 = new Component[j];
|
||||
while (buffer.position < buffer.aByteArray1405.length) {
|
||||
int k = buffer.method410();
|
||||
while (buffer.position < buffer.data.length) {
|
||||
int k = buffer.getU16();
|
||||
if (k == 65535) {
|
||||
i = buffer.method410();
|
||||
k = buffer.method410();
|
||||
i = buffer.getU16();
|
||||
k = buffer.getU16();
|
||||
}
|
||||
Component component = aComponentArray210[k] = new Component();
|
||||
component.anInt250 = k;
|
||||
component.anInt236 = i;
|
||||
component.anInt262 = buffer.method408();
|
||||
component.anInt217 = buffer.method408();
|
||||
component.anInt214 = buffer.method410();
|
||||
component.anInt220 = buffer.method410();
|
||||
component.anInt267 = buffer.method410();
|
||||
component.aByte254 = (byte) buffer.method408();
|
||||
component.anInt230 = buffer.method408();
|
||||
component.anInt262 = buffer.getU8();
|
||||
component.anInt217 = buffer.getU8();
|
||||
component.anInt214 = buffer.getU16();
|
||||
component.anInt220 = buffer.getU16();
|
||||
component.anInt267 = buffer.getU16();
|
||||
component.aByte254 = (byte) buffer.getU8();
|
||||
component.anInt230 = buffer.getU8();
|
||||
if (component.anInt230 != 0) {
|
||||
component.anInt230 = ((component.anInt230 - 1) << 8) + buffer.method408();
|
||||
component.anInt230 = ((component.anInt230 - 1) << 8) + buffer.getU8();
|
||||
} else {
|
||||
component.anInt230 = -1;
|
||||
}
|
||||
int i1 = buffer.method408();
|
||||
int i1 = buffer.getU8();
|
||||
if (i1 > 0) {
|
||||
component.anIntArray245 = new int[i1];
|
||||
component.anIntArray212 = new int[i1];
|
||||
for (int j1 = 0; j1 < i1; j1++) {
|
||||
component.anIntArray245[j1] = buffer.method408();
|
||||
component.anIntArray212[j1] = buffer.method410();
|
||||
component.anIntArray245[j1] = buffer.getU8();
|
||||
component.anIntArray212[j1] = buffer.getU16();
|
||||
}
|
||||
}
|
||||
int k1 = buffer.method408();
|
||||
int k1 = buffer.getU8();
|
||||
if (k1 > 0) {
|
||||
component.anIntArrayArray226 = new int[k1][];
|
||||
for (int l1 = 0; l1 < k1; l1++) {
|
||||
int i3 = buffer.method410();
|
||||
int i3 = buffer.getU16();
|
||||
component.anIntArrayArray226[l1] = new int[i3];
|
||||
for (int l4 = 0; l4 < i3; l4++) {
|
||||
component.anIntArrayArray226[l1][l4] = buffer.method410();
|
||||
component.anIntArrayArray226[l1][l4] = buffer.getU16();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (component.anInt262 == 0) {
|
||||
component.anInt261 = buffer.method410();
|
||||
component.aBoolean266 = buffer.method408() == 1;
|
||||
int i2 = buffer.method410();
|
||||
component.anInt261 = buffer.getU16();
|
||||
component.aBoolean266 = buffer.getU8() == 1;
|
||||
int i2 = buffer.getU16();
|
||||
component.anIntArray240 = new int[i2];
|
||||
component.anIntArray241 = new int[i2];
|
||||
component.anIntArray272 = new int[i2];
|
||||
for (int j3 = 0; j3 < i2; j3++) {
|
||||
component.anIntArray240[j3] = buffer.method410();
|
||||
component.anIntArray241[j3] = buffer.method411();
|
||||
component.anIntArray272[j3] = buffer.method411();
|
||||
component.anIntArray240[j3] = buffer.getU16();
|
||||
component.anIntArray241[j3] = buffer.get16();
|
||||
component.anIntArray272[j3] = buffer.get16();
|
||||
}
|
||||
}
|
||||
if (component.anInt262 == 1) {
|
||||
component.unusedInt = buffer.method410();
|
||||
component.unusedBool = buffer.method408() == 1;
|
||||
component.unusedInt = buffer.getU16();
|
||||
component.unusedBool = buffer.getU8() == 1;
|
||||
}
|
||||
if (component.anInt262 == 2) {
|
||||
component.anIntArray253 = new int[component.anInt220 * component.anInt267];
|
||||
component.anIntArray252 = new int[component.anInt220 * component.anInt267];
|
||||
component.aBoolean259 = buffer.method408() == 1;
|
||||
component.aBoolean249 = buffer.method408() == 1;
|
||||
component.aBoolean242 = buffer.method408() == 1;
|
||||
component.aBoolean235 = buffer.method408() == 1;
|
||||
component.anInt231 = buffer.method408();
|
||||
component.anInt244 = buffer.method408();
|
||||
component.aBoolean259 = buffer.getU8() == 1;
|
||||
component.aBoolean249 = buffer.getU8() == 1;
|
||||
component.aBoolean242 = buffer.getU8() == 1;
|
||||
component.aBoolean235 = buffer.getU8() == 1;
|
||||
component.anInt231 = buffer.getU8();
|
||||
component.anInt244 = buffer.getU8();
|
||||
component.anIntArray215 = new int[20];
|
||||
component.anIntArray247 = new int[20];
|
||||
component.aImageArray209 = new Image24[20];
|
||||
for (int j2 = 0; j2 < 20; j2++) {
|
||||
int k3 = buffer.method408();
|
||||
int k3 = buffer.getU8();
|
||||
if (k3 == 1) {
|
||||
component.anIntArray215[j2] = buffer.method411();
|
||||
component.anIntArray247[j2] = buffer.method411();
|
||||
String s1 = buffer.method415();
|
||||
component.anIntArray215[j2] = buffer.get16();
|
||||
component.anIntArray247[j2] = buffer.get16();
|
||||
String s1 = buffer.getString();
|
||||
if ((archive_1 != null) && (s1.length() > 0)) {
|
||||
int i5 = s1.lastIndexOf(",");
|
||||
component.aImageArray209[j2] = method207(Integer.parseInt(s1.substring(i5 + 1)), archive_1, s1.substring(0, i5));
|
||||
@@ -162,102 +162,102 @@ public class Component {
|
||||
}
|
||||
component.aStringArray225 = new String[5];
|
||||
for (int l3 = 0; l3 < 5; l3++) {
|
||||
component.aStringArray225[l3] = buffer.method415();
|
||||
component.aStringArray225[l3] = buffer.getString();
|
||||
if (component.aStringArray225[l3].length() == 0) {
|
||||
component.aStringArray225[l3] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (component.anInt262 == 3) {
|
||||
component.aBoolean227 = buffer.method408() == 1;
|
||||
component.aBoolean227 = buffer.getU8() == 1;
|
||||
}
|
||||
if ((component.anInt262 == 4) || (component.anInt262 == 1)) {
|
||||
component.aBoolean223 = buffer.method408() == 1;
|
||||
int k2 = buffer.method408();
|
||||
component.aBoolean223 = buffer.getU8() == 1;
|
||||
int k2 = buffer.getU8();
|
||||
if (aclass30_sub2_sub1_sub4 != null) {
|
||||
component.aFont_243 = aclass30_sub2_sub1_sub4[k2];
|
||||
}
|
||||
component.aBoolean268 = buffer.method408() == 1;
|
||||
component.aBoolean268 = buffer.getU8() == 1;
|
||||
}
|
||||
if (component.anInt262 == 4) {
|
||||
component.aString248 = buffer.method415();
|
||||
component.aString228 = buffer.method415();
|
||||
component.aString248 = buffer.getString();
|
||||
component.aString228 = buffer.getString();
|
||||
}
|
||||
if ((component.anInt262 == 1) || (component.anInt262 == 3) || (component.anInt262 == 4)) {
|
||||
component.anInt232 = buffer.method413();
|
||||
component.anInt232 = buffer.get32();
|
||||
}
|
||||
if ((component.anInt262 == 3) || (component.anInt262 == 4)) {
|
||||
component.anInt219 = buffer.method413();
|
||||
component.anInt216 = buffer.method413();
|
||||
component.anInt239 = buffer.method413();
|
||||
component.anInt219 = buffer.get32();
|
||||
component.anInt216 = buffer.get32();
|
||||
component.anInt239 = buffer.get32();
|
||||
}
|
||||
if (component.anInt262 == 5) {
|
||||
String s = buffer.method415();
|
||||
String s = buffer.getString();
|
||||
if ((archive_1 != null) && (s.length() > 0)) {
|
||||
int i4 = s.lastIndexOf(",");
|
||||
component.aImage_207 = method207(Integer.parseInt(s.substring(i4 + 1)), archive_1, s.substring(0, i4));
|
||||
}
|
||||
s = buffer.method415();
|
||||
s = buffer.getString();
|
||||
if ((archive_1 != null) && (s.length() > 0)) {
|
||||
int j4 = s.lastIndexOf(",");
|
||||
component.aImage_260 = method207(Integer.parseInt(s.substring(j4 + 1)), archive_1, s.substring(0, j4));
|
||||
}
|
||||
}
|
||||
if (component.anInt262 == 6) {
|
||||
int l = buffer.method408();
|
||||
int l = buffer.getU8();
|
||||
if (l != 0) {
|
||||
component.anInt233 = 1;
|
||||
component.anInt234 = ((l - 1) << 8) + buffer.method408();
|
||||
component.anInt234 = ((l - 1) << 8) + buffer.getU8();
|
||||
}
|
||||
l = buffer.method408();
|
||||
l = buffer.getU8();
|
||||
if (l != 0) {
|
||||
component.anInt255 = 1;
|
||||
component.anInt256 = ((l - 1) << 8) + buffer.method408();
|
||||
component.anInt256 = ((l - 1) << 8) + buffer.getU8();
|
||||
}
|
||||
l = buffer.method408();
|
||||
l = buffer.getU8();
|
||||
if (l != 0) {
|
||||
component.anInt257 = ((l - 1) << 8) + buffer.method408();
|
||||
component.anInt257 = ((l - 1) << 8) + buffer.getU8();
|
||||
} else {
|
||||
component.anInt257 = -1;
|
||||
}
|
||||
l = buffer.method408();
|
||||
l = buffer.getU8();
|
||||
if (l != 0) {
|
||||
component.anInt258 = ((l - 1) << 8) + buffer.method408();
|
||||
component.anInt258 = ((l - 1) << 8) + buffer.getU8();
|
||||
} else {
|
||||
component.anInt258 = -1;
|
||||
}
|
||||
component.anInt269 = buffer.method410();
|
||||
component.anInt270 = buffer.method410();
|
||||
component.anInt271 = buffer.method410();
|
||||
component.anInt269 = buffer.getU16();
|
||||
component.anInt270 = buffer.getU16();
|
||||
component.anInt271 = buffer.getU16();
|
||||
}
|
||||
if (component.anInt262 == 7) {
|
||||
component.anIntArray253 = new int[component.anInt220 * component.anInt267];
|
||||
component.anIntArray252 = new int[component.anInt220 * component.anInt267];
|
||||
component.aBoolean223 = buffer.method408() == 1;
|
||||
int l2 = buffer.method408();
|
||||
component.aBoolean223 = buffer.getU8() == 1;
|
||||
int l2 = buffer.getU8();
|
||||
if (aclass30_sub2_sub1_sub4 != null) {
|
||||
component.aFont_243 = aclass30_sub2_sub1_sub4[l2];
|
||||
}
|
||||
component.aBoolean268 = buffer.method408() == 1;
|
||||
component.anInt232 = buffer.method413();
|
||||
component.anInt231 = buffer.method411();
|
||||
component.anInt244 = buffer.method411();
|
||||
component.aBoolean249 = buffer.method408() == 1;
|
||||
component.aBoolean268 = buffer.getU8() == 1;
|
||||
component.anInt232 = buffer.get32();
|
||||
component.anInt231 = buffer.get16();
|
||||
component.anInt244 = buffer.get16();
|
||||
component.aBoolean249 = buffer.getU8() == 1;
|
||||
component.aStringArray225 = new String[5];
|
||||
for (int k4 = 0; k4 < 5; k4++) {
|
||||
component.aStringArray225[k4] = buffer.method415();
|
||||
component.aStringArray225[k4] = buffer.getString();
|
||||
if (component.aStringArray225[k4].length() == 0) {
|
||||
component.aStringArray225[k4] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((component.anInt217 == 2) || (component.anInt262 == 2)) {
|
||||
component.aString222 = buffer.method415();
|
||||
component.aString218 = buffer.method415();
|
||||
component.anInt237 = buffer.method410();
|
||||
component.aString222 = buffer.getString();
|
||||
component.aString218 = buffer.getString();
|
||||
component.anInt237 = buffer.getU16();
|
||||
}
|
||||
if ((component.anInt217 == 1) || (component.anInt217 == 4) || (component.anInt217 == 5) || (component.anInt217 == 6)) {
|
||||
component.aString221 = buffer.method415();
|
||||
component.aString221 = buffer.getString();
|
||||
if (component.aString221.length() == 0) {
|
||||
if (component.anInt217 == 1) {
|
||||
component.aString221 = "Ok";
|
||||
|
||||
@@ -1,70 +1,77 @@
|
||||
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3)
|
||||
|
||||
/**
|
||||
* A simple file archive format.
|
||||
*/
|
||||
public class FileArchive {
|
||||
|
||||
public byte[] aByteArray726;
|
||||
public int anInt727;
|
||||
public int[] anIntArray728;
|
||||
public int[] anIntArray729;
|
||||
public int[] anIntArray730;
|
||||
public int[] anIntArray731;
|
||||
public boolean aBoolean732;
|
||||
public byte[] data;
|
||||
public int fileCount;
|
||||
public int[] fileHash;
|
||||
public int[] fileSizeInflated;
|
||||
public int[] fileSizeDeflated;
|
||||
public int[] fileOffset;
|
||||
public boolean inflated;
|
||||
|
||||
public FileArchive(byte[] abyte0) {
|
||||
method570(abyte0);
|
||||
public FileArchive(byte[] src) {
|
||||
load(src);
|
||||
}
|
||||
|
||||
public void method570(byte[] abyte0) {
|
||||
Buffer buffer = new Buffer(abyte0);
|
||||
int i = buffer.method412();
|
||||
int j = buffer.method412();
|
||||
if (j != i) {
|
||||
byte[] abyte1 = new byte[i];
|
||||
BZip2Deflator.method225(abyte1, i, abyte0, j, 6);
|
||||
aByteArray726 = abyte1;
|
||||
buffer = new Buffer(aByteArray726);
|
||||
aBoolean732 = true;
|
||||
public void load(byte[] src) {
|
||||
Buffer buffer = new Buffer(src);
|
||||
|
||||
int inflatedSize = buffer.get24();
|
||||
int deflatedSize = buffer.get24();
|
||||
|
||||
if (deflatedSize != inflatedSize) {
|
||||
byte[] inflated = new byte[inflatedSize];
|
||||
BZip2.inflate(inflated, inflatedSize, src, deflatedSize, 6);
|
||||
data = inflated;
|
||||
buffer = new Buffer(data);
|
||||
this.inflated = true;
|
||||
} else {
|
||||
aByteArray726 = abyte0;
|
||||
aBoolean732 = false;
|
||||
data = src;
|
||||
inflated = false;
|
||||
}
|
||||
anInt727 = buffer.method410();
|
||||
anIntArray728 = new int[anInt727];
|
||||
anIntArray729 = new int[anInt727];
|
||||
anIntArray730 = new int[anInt727];
|
||||
anIntArray731 = new int[anInt727];
|
||||
int k = buffer.position + (anInt727 * 10);
|
||||
for (int l = 0; l < anInt727; l++) {
|
||||
anIntArray728[l] = buffer.method413();
|
||||
anIntArray729[l] = buffer.method412();
|
||||
anIntArray730[l] = buffer.method412();
|
||||
anIntArray731[l] = k;
|
||||
k += anIntArray730[l];
|
||||
|
||||
fileCount = buffer.getU16();
|
||||
fileHash = new int[fileCount];
|
||||
fileSizeInflated = new int[fileCount];
|
||||
fileSizeDeflated = new int[fileCount];
|
||||
fileOffset = new int[fileCount];
|
||||
|
||||
int offset = buffer.position + (fileCount * 10);
|
||||
|
||||
for (int file = 0; file < fileCount; file++) {
|
||||
fileHash[file] = buffer.get32();
|
||||
fileSizeInflated[file] = buffer.get24();
|
||||
fileSizeDeflated[file] = buffer.get24();
|
||||
fileOffset[file] = offset;
|
||||
offset += fileSizeDeflated[file];
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] method571(String s, byte[] abyte0) {
|
||||
int i = 0;
|
||||
public byte[] read(String s, byte[] dst) {
|
||||
int hash = 0;
|
||||
s = s.toUpperCase();
|
||||
for (int j = 0; j < s.length(); j++) {
|
||||
i = ((i * 61) + s.charAt(j)) - 32;
|
||||
hash = ((hash * 61) + s.charAt(j)) - 32;
|
||||
}
|
||||
for (int k = 0; k < anInt727; k++) {
|
||||
if (anIntArray728[k] == i) {
|
||||
if (abyte0 == null) {
|
||||
abyte0 = new byte[anIntArray729[k]];
|
||||
}
|
||||
if (!aBoolean732) {
|
||||
BZip2Deflator.method225(abyte0, anIntArray729[k], aByteArray726, anIntArray730[k], anIntArray731[k]);
|
||||
} else {
|
||||
for (int l = 0; l < anIntArray729[k]; l++) {
|
||||
abyte0[l] = aByteArray726[anIntArray731[k] + l];
|
||||
}
|
||||
}
|
||||
return abyte0;
|
||||
|
||||
for (int file = 0; file < fileCount; file++) {
|
||||
if (fileHash[file] != hash) {
|
||||
continue;
|
||||
}
|
||||
if (dst == null) {
|
||||
dst = new byte[fileSizeInflated[file]];
|
||||
}
|
||||
|
||||
if (!inflated) {
|
||||
BZip2.inflate(dst, fileSizeInflated[file], data, fileSizeDeflated[file], fileOffset[file]);
|
||||
} else {
|
||||
for (int i = 0; i < fileSizeInflated[file]; i++) {
|
||||
dst[i] = data[fileOffset[file] + i];
|
||||
}
|
||||
}
|
||||
return dst;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -22,8 +22,8 @@ public class FloType {
|
||||
}
|
||||
|
||||
public static void method260(FileArchive archive) {
|
||||
Buffer buffer = new Buffer(archive.method571("flo.dat", null));
|
||||
anInt387 = buffer.method410();
|
||||
Buffer buffer = new Buffer(archive.read("flo.dat", null));
|
||||
anInt387 = buffer.getU16();
|
||||
if (aTypeArray388 == null) {
|
||||
aTypeArray388 = new FloType[anInt387];
|
||||
}
|
||||
@@ -37,27 +37,27 @@ public class FloType {
|
||||
|
||||
public void method261(Buffer buffer) {
|
||||
do {
|
||||
int i = buffer.method408();
|
||||
int i = buffer.getU8();
|
||||
if (i == 0) {
|
||||
return;
|
||||
}
|
||||
if (i == 1) {
|
||||
anInt390 = buffer.method412();
|
||||
anInt390 = buffer.get24();
|
||||
method262(anInt390);
|
||||
} else if (i == 2) {
|
||||
anInt391 = buffer.method408();
|
||||
anInt391 = buffer.getU8();
|
||||
} else if (i == 3) {
|
||||
unusedBool = true;
|
||||
} else if (i == 5) {
|
||||
aBoolean393 = false;
|
||||
} else if (i == 6) {
|
||||
unusedString = buffer.method415();
|
||||
unusedString = buffer.getString();
|
||||
} else if (i == 7) {
|
||||
int j = anInt394;
|
||||
int k = anInt395;
|
||||
int l = anInt396;
|
||||
int i1 = anInt397;
|
||||
int j1 = buffer.method412();
|
||||
int j1 = buffer.get24();
|
||||
method262(j1);
|
||||
anInt394 = j;
|
||||
anInt395 = k;
|
||||
|
||||
+601
-601
File diff suppressed because it is too large.
Load diff
@@ -12,7 +12,7 @@ public class Huffman {
|
||||
int j = 0;
|
||||
int k = -1;
|
||||
for (int l = 0; l < i; l++) {
|
||||
int i1 = buffer.method408();
|
||||
int i1 = buffer.getU8();
|
||||
int j1 = (i1 >> 4) & 0xf;
|
||||
if (k == -1) {
|
||||
if (j1 < 13) {
|
||||
@@ -73,18 +73,18 @@ public class Huffman {
|
||||
if (k < 13) {
|
||||
i = k;
|
||||
} else {
|
||||
buffer.method398(k);
|
||||
buffer.put8(k);
|
||||
}
|
||||
} else if (k < 13) {
|
||||
buffer.method398((i << 4) + k);
|
||||
buffer.put8((i << 4) + k);
|
||||
i = -1;
|
||||
} else {
|
||||
buffer.method398((i << 4) + (k >> 4));
|
||||
buffer.put8((i << 4) + (k >> 4));
|
||||
i = k & 0xf;
|
||||
}
|
||||
}
|
||||
if (i != -1) {
|
||||
buffer.method398(i << 4);
|
||||
buffer.put8(i << 4);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@ public class IDKType {
|
||||
}
|
||||
|
||||
public static void method535(FileArchive archive) {
|
||||
Buffer buffer = new Buffer(archive.method571("idk.dat", null));
|
||||
anInt655 = buffer.method410();
|
||||
Buffer buffer = new Buffer(archive.read("idk.dat", null));
|
||||
anInt655 = buffer.getU16();
|
||||
if (aIDKTypeArray656 == null) {
|
||||
aIDKTypeArray656 = new IDKType[anInt655];
|
||||
}
|
||||
@@ -32,26 +32,26 @@ public class IDKType {
|
||||
|
||||
public void method536(Buffer buffer) {
|
||||
do {
|
||||
int i = buffer.method408();
|
||||
int i = buffer.getU8();
|
||||
if (i == 0) {
|
||||
return;
|
||||
}
|
||||
if (i == 1) {
|
||||
anInt657 = buffer.method408();
|
||||
anInt657 = buffer.getU8();
|
||||
} else if (i == 2) {
|
||||
int j = buffer.method408();
|
||||
int j = buffer.getU8();
|
||||
anIntArray658 = new int[j];
|
||||
for (int k = 0; k < j; k++) {
|
||||
anIntArray658[k] = buffer.method410();
|
||||
anIntArray658[k] = buffer.getU16();
|
||||
}
|
||||
} else if (i == 3) {
|
||||
aBoolean662 = true;
|
||||
} else if ((i >= 40) && (i < 50)) {
|
||||
anIntArray659[i - 40] = buffer.method410();
|
||||
anIntArray659[i - 40] = buffer.getU16();
|
||||
} else if ((i >= 50) && (i < 60)) {
|
||||
anIntArray660[i - 50] = buffer.method410();
|
||||
anIntArray660[i - 50] = buffer.getU16();
|
||||
} else if ((i >= 60) && (i < 70)) {
|
||||
anIntArray661[i - 60] = buffer.method410();
|
||||
anIntArray661[i - 60] = buffer.getU16();
|
||||
} else {
|
||||
System.out.println("Error unrecognised config code: " + i);
|
||||
}
|
||||
|
||||
+15
-15
@@ -43,41 +43,41 @@ public class Image24 extends Draw2D {
|
||||
}
|
||||
|
||||
public Image24(FileArchive archive, String s, int i) {
|
||||
Buffer buffer = new Buffer(archive.method571(s + ".dat", null));
|
||||
Buffer buffer_1 = new Buffer(archive.method571("index.dat", null));
|
||||
buffer_1.position = buffer.method410();
|
||||
anInt1444 = buffer_1.method410();
|
||||
anInt1445 = buffer_1.method410();
|
||||
int j = buffer_1.method408();
|
||||
Buffer buffer = new Buffer(archive.read(s + ".dat", null));
|
||||
Buffer buffer_1 = new Buffer(archive.read("index.dat", null));
|
||||
buffer_1.position = buffer.getU16();
|
||||
anInt1444 = buffer_1.getU16();
|
||||
anInt1445 = buffer_1.getU16();
|
||||
int j = buffer_1.getU8();
|
||||
int[] ai = new int[j];
|
||||
for (int k = 0; k < (j - 1); k++) {
|
||||
ai[k + 1] = buffer_1.method412();
|
||||
ai[k + 1] = buffer_1.get24();
|
||||
if (ai[k + 1] == 0) {
|
||||
ai[k + 1] = 1;
|
||||
}
|
||||
}
|
||||
for (int l = 0; l < i; l++) {
|
||||
buffer_1.position += 2;
|
||||
buffer.position += buffer_1.method410() * buffer_1.method410();
|
||||
buffer.position += buffer_1.getU16() * buffer_1.getU16();
|
||||
buffer_1.position++;
|
||||
}
|
||||
anInt1442 = buffer_1.method408();
|
||||
anInt1443 = buffer_1.method408();
|
||||
anInt1440 = buffer_1.method410();
|
||||
anInt1441 = buffer_1.method410();
|
||||
int i1 = buffer_1.method408();
|
||||
anInt1442 = buffer_1.getU8();
|
||||
anInt1443 = buffer_1.getU8();
|
||||
anInt1440 = buffer_1.getU16();
|
||||
anInt1441 = buffer_1.getU16();
|
||||
int i1 = buffer_1.getU8();
|
||||
int j1 = anInt1440 * anInt1441;
|
||||
anIntArray1439 = new int[j1];
|
||||
if (i1 == 0) {
|
||||
for (int k1 = 0; k1 < j1; k1++) {
|
||||
anIntArray1439[k1] = ai[buffer.method408()];
|
||||
anIntArray1439[k1] = ai[buffer.getU8()];
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (i1 == 1) {
|
||||
for (int l1 = 0; l1 < anInt1440; l1++) {
|
||||
for (int i2 = 0; i2 < anInt1441; i2++) {
|
||||
anIntArray1439[l1 + (i2 * anInt1440)] = ai[buffer.method408()];
|
||||
anIntArray1439[l1 + (i2 * anInt1440)] = ai[buffer.getU8()];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+15
-15
@@ -14,38 +14,38 @@ public class Image8 extends Draw2D {
|
||||
public int anInt1457;
|
||||
|
||||
public Image8(FileArchive archive, String s, int i) {
|
||||
Buffer buffer = new Buffer(archive.method571(s + ".dat", null));
|
||||
Buffer buffer_1 = new Buffer(archive.method571("index.dat", null));
|
||||
buffer_1.position = buffer.method410();
|
||||
anInt1456 = buffer_1.method410();
|
||||
anInt1457 = buffer_1.method410();
|
||||
int j = buffer_1.method408();
|
||||
Buffer buffer = new Buffer(archive.read(s + ".dat", null));
|
||||
Buffer buffer_1 = new Buffer(archive.read("index.dat", null));
|
||||
buffer_1.position = buffer.getU16();
|
||||
anInt1456 = buffer_1.getU16();
|
||||
anInt1457 = buffer_1.getU16();
|
||||
int j = buffer_1.getU8();
|
||||
anIntArray1451 = new int[j];
|
||||
for (int k = 0; k < (j - 1); k++) {
|
||||
anIntArray1451[k + 1] = buffer_1.method412();
|
||||
anIntArray1451[k + 1] = buffer_1.get24();
|
||||
}
|
||||
for (int l = 0; l < i; l++) {
|
||||
buffer_1.position += 2;
|
||||
buffer.position += buffer_1.method410() * buffer_1.method410();
|
||||
buffer.position += buffer_1.getU16() * buffer_1.getU16();
|
||||
buffer_1.position++;
|
||||
}
|
||||
anInt1454 = buffer_1.method408();
|
||||
anInt1455 = buffer_1.method408();
|
||||
anInt1452 = buffer_1.method410();
|
||||
anInt1453 = buffer_1.method410();
|
||||
int i1 = buffer_1.method408();
|
||||
anInt1454 = buffer_1.getU8();
|
||||
anInt1455 = buffer_1.getU8();
|
||||
anInt1452 = buffer_1.getU16();
|
||||
anInt1453 = buffer_1.getU16();
|
||||
int i1 = buffer_1.getU8();
|
||||
int j1 = anInt1452 * anInt1453;
|
||||
aByteArray1450 = new byte[j1];
|
||||
if (i1 == 0) {
|
||||
for (int k1 = 0; k1 < j1; k1++) {
|
||||
aByteArray1450[k1] = buffer.method409();
|
||||
aByteArray1450[k1] = buffer.get8();
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (i1 == 1) {
|
||||
for (int l1 = 0; l1 < anInt1452; l1++) {
|
||||
for (int i2 = 0; i2 < anInt1453; i2++) {
|
||||
aByteArray1450[l1 + (i2 * anInt1452)] = buffer.method409();
|
||||
aByteArray1450[l1 + (i2 * anInt1452)] = buffer.get8();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+37
-37
@@ -80,14 +80,14 @@ public class LocType {
|
||||
}
|
||||
|
||||
public static void method576(FileArchive archive) {
|
||||
aBuffer_753 = new Buffer(archive.method571("loc.dat", null));
|
||||
Buffer buffer = new Buffer(archive.method571("loc.idx", null));
|
||||
anInt756 = buffer.method410();
|
||||
aBuffer_753 = new Buffer(archive.read("loc.dat", null));
|
||||
Buffer buffer = new Buffer(archive.read("loc.idx", null));
|
||||
anInt756 = buffer.getU16();
|
||||
anIntArray755 = new int[anInt756];
|
||||
int i = 2;
|
||||
for (int j = 0; j < anInt756; j++) {
|
||||
anIntArray755[j] = i;
|
||||
i += buffer.method410();
|
||||
i += buffer.getU16();
|
||||
}
|
||||
aTypeArray782 = new LocType[20];
|
||||
for (int k = 0; k < 20; k++) {
|
||||
@@ -331,51 +331,51 @@ public class LocType {
|
||||
do {
|
||||
int j;
|
||||
do {
|
||||
j = buffer.method408();
|
||||
j = buffer.getU8();
|
||||
if (j == 0) {
|
||||
break label0;
|
||||
}
|
||||
if (j == 1) {
|
||||
int k = buffer.method408();
|
||||
int k = buffer.getU8();
|
||||
if (k > 0) {
|
||||
if ((anIntArray773 == null) || aBoolean752) {
|
||||
anIntArray776 = new int[k];
|
||||
anIntArray773 = new int[k];
|
||||
for (int k1 = 0; k1 < k; k1++) {
|
||||
anIntArray773[k1] = buffer.method410();
|
||||
anIntArray776[k1] = buffer.method408();
|
||||
anIntArray773[k1] = buffer.getU16();
|
||||
anIntArray776[k1] = buffer.getU8();
|
||||
}
|
||||
} else {
|
||||
buffer.position += k * 3;
|
||||
}
|
||||
}
|
||||
} else if (j == 2) {
|
||||
aString739 = buffer.method415();
|
||||
aString739 = buffer.getString();
|
||||
} else if (j == 3) {
|
||||
aByteArray777 = buffer.method416();
|
||||
aByteArray777 = buffer.getStringBytes();
|
||||
} else if (j == 5) {
|
||||
int l = buffer.method408();
|
||||
int l = buffer.getU8();
|
||||
if (l > 0) {
|
||||
if ((anIntArray773 == null) || aBoolean752) {
|
||||
anIntArray776 = null;
|
||||
anIntArray773 = new int[l];
|
||||
for (int l1 = 0; l1 < l; l1++) {
|
||||
anIntArray773[l1] = buffer.method410();
|
||||
anIntArray773[l1] = buffer.getU16();
|
||||
}
|
||||
} else {
|
||||
buffer.position += l * 2;
|
||||
}
|
||||
}
|
||||
} else if (j == 14) {
|
||||
anInt744 = buffer.method408();
|
||||
anInt744 = buffer.getU8();
|
||||
} else if (j == 15) {
|
||||
anInt761 = buffer.method408();
|
||||
anInt761 = buffer.getU8();
|
||||
} else if (j == 17) {
|
||||
aBoolean767 = false;
|
||||
} else if (j == 18) {
|
||||
aBoolean757 = false;
|
||||
} else if (j == 19) {
|
||||
i = buffer.method408();
|
||||
i = buffer.getU8();
|
||||
if (i == 1) {
|
||||
aBoolean778 = true;
|
||||
}
|
||||
@@ -386,54 +386,54 @@ public class LocType {
|
||||
} else if (j == 23) {
|
||||
aBoolean764 = true;
|
||||
} else if (j == 24) {
|
||||
anInt781 = buffer.method410();
|
||||
anInt781 = buffer.getU16();
|
||||
if (anInt781 == 65535) {
|
||||
anInt781 = -1;
|
||||
}
|
||||
} else if (j == 28) {
|
||||
anInt775 = buffer.method408();
|
||||
anInt775 = buffer.getU8();
|
||||
} else if (j == 29) {
|
||||
aByte737 = buffer.method409();
|
||||
aByte737 = buffer.get8();
|
||||
} else if (j == 39) {
|
||||
aByte742 = buffer.method409();
|
||||
aByte742 = buffer.get8();
|
||||
} else if ((j >= 30) && (j < 39)) {
|
||||
if (aStringArray786 == null) {
|
||||
aStringArray786 = new String[5];
|
||||
}
|
||||
aStringArray786[j - 30] = buffer.method415();
|
||||
aStringArray786[j - 30] = buffer.getString();
|
||||
if (aStringArray786[j - 30].equalsIgnoreCase("hidden")) {
|
||||
aStringArray786[j - 30] = null;
|
||||
}
|
||||
} else if (j == 40) {
|
||||
int i1 = buffer.method408();
|
||||
int i1 = buffer.getU8();
|
||||
anIntArray784 = new int[i1];
|
||||
anIntArray747 = new int[i1];
|
||||
for (int i2 = 0; i2 < i1; i2++) {
|
||||
anIntArray784[i2] = buffer.method410();
|
||||
anIntArray747[i2] = buffer.method410();
|
||||
anIntArray784[i2] = buffer.getU16();
|
||||
anIntArray747[i2] = buffer.getU16();
|
||||
}
|
||||
} else if (j == 60) {
|
||||
anInt746 = buffer.method410();
|
||||
anInt746 = buffer.getU16();
|
||||
} else if (j == 62) {
|
||||
aBoolean751 = true;
|
||||
} else if (j == 64) {
|
||||
aBoolean779 = false;
|
||||
} else if (j == 65) {
|
||||
anInt748 = buffer.method410();
|
||||
anInt748 = buffer.getU16();
|
||||
} else if (j == 66) {
|
||||
anInt772 = buffer.method410();
|
||||
anInt772 = buffer.getU16();
|
||||
} else if (j == 67) {
|
||||
anInt740 = buffer.method410();
|
||||
anInt740 = buffer.getU16();
|
||||
} else if (j == 68) {
|
||||
anInt758 = buffer.method410();
|
||||
anInt758 = buffer.getU16();
|
||||
} else if (j == 69) {
|
||||
anInt768 = buffer.method408();
|
||||
anInt768 = buffer.getU8();
|
||||
} else if (j == 70) {
|
||||
anInt738 = buffer.method411();
|
||||
anInt738 = buffer.get16();
|
||||
} else if (j == 71) {
|
||||
anInt745 = buffer.method411();
|
||||
anInt745 = buffer.get16();
|
||||
} else if (j == 72) {
|
||||
anInt783 = buffer.method411();
|
||||
anInt783 = buffer.get16();
|
||||
} else if (j == 73) {
|
||||
aBoolean736 = true;
|
||||
} else if (j == 74) {
|
||||
@@ -442,22 +442,22 @@ public class LocType {
|
||||
if (j != 75) {
|
||||
continue;
|
||||
}
|
||||
anInt760 = buffer.method408();
|
||||
anInt760 = buffer.getU8();
|
||||
}
|
||||
continue label0;
|
||||
} while (j != 77);
|
||||
anInt774 = buffer.method410();
|
||||
anInt774 = buffer.getU16();
|
||||
if (anInt774 == 65535) {
|
||||
anInt774 = -1;
|
||||
}
|
||||
anInt749 = buffer.method410();
|
||||
anInt749 = buffer.getU16();
|
||||
if (anInt749 == 65535) {
|
||||
anInt749 = -1;
|
||||
}
|
||||
int j1 = buffer.method408();
|
||||
int j1 = buffer.getU8();
|
||||
anIntArray759 = new int[j1 + 1];
|
||||
for (int j2 = 0; j2 <= j1; j2++) {
|
||||
anIntArray759[j2] = buffer.method410();
|
||||
anIntArray759[j2] = buffer.getU16();
|
||||
if (anIntArray759[j2] == 65535) {
|
||||
anIntArray759[j2] = -1;
|
||||
}
|
||||
|
||||
+32
-32
@@ -194,22 +194,22 @@ public class Model extends Entity {
|
||||
int z = 0;
|
||||
|
||||
for (int v = 0; v < vertexCount; v++) {
|
||||
int flags = buf0.method408();
|
||||
int flags = buf0.getU8();
|
||||
|
||||
int dx = 0;
|
||||
int dy = 0;
|
||||
int dz = 0;
|
||||
|
||||
if ((flags & 1) != 0) {
|
||||
dx = buf1.method421();
|
||||
dx = buf1.getSmart();
|
||||
}
|
||||
|
||||
if ((flags & 2) != 0) {
|
||||
dy = buf2.method421();
|
||||
dy = buf2.getSmart();
|
||||
}
|
||||
|
||||
if ((flags & 4) != 0) {
|
||||
dz = buf3.method421();
|
||||
dz = buf3.getSmart();
|
||||
}
|
||||
|
||||
vertexX[v] = x + dx;
|
||||
@@ -221,7 +221,7 @@ public class Model extends Entity {
|
||||
z = vertexZ[v];
|
||||
|
||||
if (vertexLabel != null) {
|
||||
vertexLabel[v] = buf4.method408();
|
||||
vertexLabel[v] = buf4.getU8();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -232,22 +232,22 @@ public class Model extends Entity {
|
||||
buf4.position = header.obFace5Position;
|
||||
|
||||
for (int face = 0; face < faceCount; face++) {
|
||||
faceColor[face] = buf0.method410();
|
||||
faceColor[face] = buf0.getU16();
|
||||
|
||||
if (faceInfo != null) {
|
||||
faceInfo[face] = buf1.method408();
|
||||
faceInfo[face] = buf1.getU8();
|
||||
}
|
||||
|
||||
if (facePriority != null) {
|
||||
facePriority[face] = buf2.method408();
|
||||
facePriority[face] = buf2.getU8();
|
||||
}
|
||||
|
||||
if (faceAlpha != null) {
|
||||
faceAlpha[face] = buf3.method408();
|
||||
faceAlpha[face] = buf3.getU8();
|
||||
}
|
||||
|
||||
if (faceLabel != null) {
|
||||
faceLabel[face] = buf4.method408();
|
||||
faceLabel[face] = buf4.getU8();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -260,7 +260,7 @@ public class Model extends Entity {
|
||||
int last = 0;
|
||||
|
||||
for (int face = 0; face < faceCount; face++) {
|
||||
int orientation = buf1.method408();
|
||||
int orientation = buf1.getU8();
|
||||
|
||||
// fancy shmansy compression type stuff.
|
||||
// vertex indices stored as deltas, with some faces
|
||||
@@ -268,11 +268,11 @@ public class Model extends Entity {
|
||||
|
||||
// new a, b, c
|
||||
if (orientation == 1) {
|
||||
a = buf0.method421() + last;
|
||||
a = buf0.getSmart() + last;
|
||||
last = a;
|
||||
b = buf0.method421() + last;
|
||||
b = buf0.getSmart() + last;
|
||||
last = b;
|
||||
c = buf0.method421() + last;
|
||||
c = buf0.getSmart() + last;
|
||||
last = c;
|
||||
faceVertexA[face] = a;
|
||||
faceVertexB[face] = b;
|
||||
@@ -282,7 +282,7 @@ public class Model extends Entity {
|
||||
// reuse a, c, new b
|
||||
if (orientation == 2) {
|
||||
b = c;
|
||||
c = buf0.method421() + last;
|
||||
c = buf0.getSmart() + last;
|
||||
last = c;
|
||||
faceVertexA[face] = a;
|
||||
faceVertexB[face] = b;
|
||||
@@ -292,7 +292,7 @@ public class Model extends Entity {
|
||||
// reuse c, b, new a
|
||||
if (orientation == 3) {
|
||||
a = c;
|
||||
c = buf0.method421() + last;
|
||||
c = buf0.getSmart() + last;
|
||||
last = c;
|
||||
faceVertexA[face] = a;
|
||||
faceVertexB[face] = b;
|
||||
@@ -304,7 +304,7 @@ public class Model extends Entity {
|
||||
int a_ = a;
|
||||
a = b;
|
||||
b = a_;
|
||||
c = buf0.method421() + last;
|
||||
c = buf0.getSmart() + last;
|
||||
last = c;
|
||||
faceVertexA[face] = a;
|
||||
faceVertexB[face] = b;
|
||||
@@ -315,9 +315,9 @@ public class Model extends Entity {
|
||||
buf0.position = header.obAxisPosition;
|
||||
|
||||
for (int face = 0; face < texturedFaceCount; face++) {
|
||||
texturedVertexA[face] = buf0.method410();
|
||||
texturedVertexB[face] = buf0.method410();
|
||||
texturedVertexC[face] = buf0.method410();
|
||||
texturedVertexA[face] = buf0.getU16();
|
||||
texturedVertexB[face] = buf0.getU16();
|
||||
texturedVertexC[face] = buf0.getU16();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -816,19 +816,19 @@ public class Model extends Entity {
|
||||
buffer.position = src.length - 18;
|
||||
ModelHeader header = headers[id] = new ModelHeader();
|
||||
header.data = src;
|
||||
header.vertexCount = buffer.method410();
|
||||
header.faceCount = buffer.method410();
|
||||
header.texturedFaceCount = buffer.method408();
|
||||
int k = buffer.method408();
|
||||
int l = buffer.method408();
|
||||
int i1 = buffer.method408();
|
||||
int j1 = buffer.method408();
|
||||
int k1 = buffer.method408();
|
||||
int l1 = buffer.method410();
|
||||
int i2 = buffer.method410();
|
||||
header.vertexCount = buffer.getU16();
|
||||
header.faceCount = buffer.getU16();
|
||||
header.texturedFaceCount = buffer.getU8();
|
||||
int k = buffer.getU8();
|
||||
int l = buffer.getU8();
|
||||
int i1 = buffer.getU8();
|
||||
int j1 = buffer.getU8();
|
||||
int k1 = buffer.getU8();
|
||||
int l1 = buffer.getU16();
|
||||
int i2 = buffer.getU16();
|
||||
//noinspection unused
|
||||
int j2 = buffer.method410();
|
||||
int k2 = buffer.method410();
|
||||
int j2 = buffer.getU16();
|
||||
int k2 = buffer.getU16();
|
||||
int offset = 0;
|
||||
header.obPoint1Position = offset;
|
||||
offset += header.vertexCount;
|
||||
|
||||
+36
-36
@@ -60,14 +60,14 @@ public class NPCType {
|
||||
}
|
||||
|
||||
public static void method162(FileArchive archive) {
|
||||
aBuffer_60 = new Buffer(archive.method571("npc.dat", null));
|
||||
Buffer buffer = new Buffer(archive.method571("npc.idx", null));
|
||||
anInt62 = buffer.method410();
|
||||
aBuffer_60 = new Buffer(archive.read("npc.dat", null));
|
||||
Buffer buffer = new Buffer(archive.read("npc.idx", null));
|
||||
anInt62 = buffer.getU16();
|
||||
anIntArray72 = new int[anInt62];
|
||||
int i = 2;
|
||||
for (int j = 0; j < anInt62; j++) {
|
||||
anIntArray72[j] = i;
|
||||
i += buffer.method410();
|
||||
i += buffer.getU16();
|
||||
}
|
||||
aTypeArray80 = new NPCType[20];
|
||||
for (int k = 0; k < 20; k++) {
|
||||
@@ -199,90 +199,90 @@ public class NPCType {
|
||||
|
||||
public void method165(Buffer buffer) {
|
||||
do {
|
||||
int i = buffer.method408();
|
||||
int i = buffer.getU8();
|
||||
if (i == 0) {
|
||||
return;
|
||||
}
|
||||
if (i == 1) {
|
||||
int j = buffer.method408();
|
||||
int j = buffer.getU8();
|
||||
anIntArray94 = new int[j];
|
||||
for (int j1 = 0; j1 < j; j1++) {
|
||||
anIntArray94[j1] = buffer.method410();
|
||||
anIntArray94[j1] = buffer.getU16();
|
||||
}
|
||||
} else if (i == 2) {
|
||||
aString65 = buffer.method415();
|
||||
aString65 = buffer.getString();
|
||||
} else if (i == 3) {
|
||||
aByteArray89 = buffer.method416();
|
||||
aByteArray89 = buffer.getStringBytes();
|
||||
} else if (i == 12) {
|
||||
aByte68 = buffer.method409();
|
||||
aByte68 = buffer.get8();
|
||||
} else if (i == 13) {
|
||||
anInt77 = buffer.method410();
|
||||
anInt77 = buffer.getU16();
|
||||
} else if (i == 14) {
|
||||
anInt67 = buffer.method410();
|
||||
anInt67 = buffer.getU16();
|
||||
} else if (i == 17) {
|
||||
anInt67 = buffer.method410();
|
||||
anInt58 = buffer.method410();
|
||||
anInt83 = buffer.method410();
|
||||
anInt55 = buffer.method410();
|
||||
anInt67 = buffer.getU16();
|
||||
anInt58 = buffer.getU16();
|
||||
anInt83 = buffer.getU16();
|
||||
anInt55 = buffer.getU16();
|
||||
} else if ((i >= 30) && (i < 40)) {
|
||||
if (aStringArray66 == null) {
|
||||
aStringArray66 = new String[5];
|
||||
}
|
||||
aStringArray66[i - 30] = buffer.method415();
|
||||
aStringArray66[i - 30] = buffer.getString();
|
||||
if (aStringArray66[i - 30].equalsIgnoreCase("hidden")) {
|
||||
aStringArray66[i - 30] = null;
|
||||
}
|
||||
} else if (i == 40) {
|
||||
int k = buffer.method408();
|
||||
int k = buffer.getU8();
|
||||
anIntArray76 = new int[k];
|
||||
anIntArray70 = new int[k];
|
||||
for (int k1 = 0; k1 < k; k1++) {
|
||||
anIntArray76[k1] = buffer.method410();
|
||||
anIntArray70[k1] = buffer.method410();
|
||||
anIntArray76[k1] = buffer.getU16();
|
||||
anIntArray70[k1] = buffer.getU16();
|
||||
}
|
||||
} else if (i == 60) {
|
||||
int l = buffer.method408();
|
||||
int l = buffer.getU8();
|
||||
anIntArray73 = new int[l];
|
||||
for (int l1 = 0; l1 < l; l1++) {
|
||||
anIntArray73[l1] = buffer.method410();
|
||||
anIntArray73[l1] = buffer.getU16();
|
||||
}
|
||||
} else if (i == 90) {
|
||||
unusedInt2 = buffer.method410();
|
||||
unusedInt2 = buffer.getU16();
|
||||
} else if (i == 91) {
|
||||
unusedInt0 = buffer.method410();
|
||||
unusedInt0 = buffer.getU16();
|
||||
} else if (i == 92) {
|
||||
unusedInt1 = buffer.method410();
|
||||
unusedInt1 = buffer.getU16();
|
||||
} else if (i == 93) {
|
||||
aBoolean87 = false;
|
||||
} else if (i == 95) {
|
||||
anInt61 = buffer.method410();
|
||||
anInt61 = buffer.getU16();
|
||||
} else if (i == 97) {
|
||||
anInt91 = buffer.method410();
|
||||
anInt91 = buffer.getU16();
|
||||
} else if (i == 98) {
|
||||
anInt86 = buffer.method410();
|
||||
anInt86 = buffer.getU16();
|
||||
} else if (i == 99) {
|
||||
aBoolean93 = true;
|
||||
} else if (i == 100) {
|
||||
anInt85 = buffer.method409();
|
||||
anInt85 = buffer.get8();
|
||||
} else if (i == 101) {
|
||||
anInt92 = buffer.method409() * 5;
|
||||
anInt92 = buffer.get8() * 5;
|
||||
} else if (i == 102) {
|
||||
anInt75 = buffer.method410();
|
||||
anInt75 = buffer.getU16();
|
||||
} else if (i == 103) {
|
||||
anInt79 = buffer.method410();
|
||||
anInt79 = buffer.getU16();
|
||||
} else if (i == 106) {
|
||||
anInt57 = buffer.method410();
|
||||
anInt57 = buffer.getU16();
|
||||
if (anInt57 == 65535) {
|
||||
anInt57 = -1;
|
||||
}
|
||||
anInt59 = buffer.method410();
|
||||
anInt59 = buffer.getU16();
|
||||
if (anInt59 == 65535) {
|
||||
anInt59 = -1;
|
||||
}
|
||||
int i1 = buffer.method408();
|
||||
int i1 = buffer.getU8();
|
||||
anIntArray88 = new int[i1 + 1];
|
||||
for (int i2 = 0; i2 <= i1; i2++) {
|
||||
anIntArray88[i2] = buffer.method410();
|
||||
anIntArray88[i2] = buffer.getU16();
|
||||
if (anIntArray88[i2] == 65535) {
|
||||
anIntArray88[i2] = -1;
|
||||
}
|
||||
|
||||
+43
-43
@@ -65,14 +65,14 @@ public class ObjType {
|
||||
}
|
||||
|
||||
public static void method193(FileArchive archive) {
|
||||
aBuffer_183 = new Buffer(archive.method571("obj.dat", null));
|
||||
Buffer buffer = new Buffer(archive.method571("obj.idx", null));
|
||||
anInt203 = buffer.method410();
|
||||
aBuffer_183 = new Buffer(archive.read("obj.dat", null));
|
||||
Buffer buffer = new Buffer(archive.read("obj.idx", null));
|
||||
anInt203 = buffer.getU16();
|
||||
anIntArray195 = new int[anInt203];
|
||||
int i = 2;
|
||||
for (int j = 0; j < anInt203; j++) {
|
||||
anIntArray195[j] = i;
|
||||
i += buffer.method410();
|
||||
i += buffer.getU16();
|
||||
}
|
||||
aTypeArray172 = new ObjType[10];
|
||||
for (int k = 0; k < 10; k++) {
|
||||
@@ -468,55 +468,55 @@ public class ObjType {
|
||||
|
||||
public void method203(Buffer buffer) {
|
||||
do {
|
||||
int i = buffer.method408();
|
||||
int i = buffer.getU8();
|
||||
if (i == 0) {
|
||||
return;
|
||||
}
|
||||
if (i == 1) {
|
||||
anInt174 = buffer.method410();
|
||||
anInt174 = buffer.getU16();
|
||||
} else if (i == 2) {
|
||||
aString170 = buffer.method415();
|
||||
aString170 = buffer.getString();
|
||||
} else if (i == 3) {
|
||||
aByteArray178 = buffer.method416();
|
||||
aByteArray178 = buffer.getStringBytes();
|
||||
} else if (i == 4) {
|
||||
anInt181 = buffer.method410();
|
||||
anInt181 = buffer.getU16();
|
||||
} else if (i == 5) {
|
||||
anInt190 = buffer.method410();
|
||||
anInt190 = buffer.getU16();
|
||||
} else if (i == 6) {
|
||||
anInt198 = buffer.method410();
|
||||
anInt198 = buffer.getU16();
|
||||
} else if (i == 7) {
|
||||
anInt169 = buffer.method410();
|
||||
anInt169 = buffer.getU16();
|
||||
if (anInt169 > 32767) {
|
||||
anInt169 -= 0x10000;
|
||||
}
|
||||
} else if (i == 8) {
|
||||
anInt194 = buffer.method410();
|
||||
anInt194 = buffer.getU16();
|
||||
if (anInt194 > 32767) {
|
||||
anInt194 -= 0x10000;
|
||||
}
|
||||
} else if (i == 10) {
|
||||
unusedInt = buffer.method410();
|
||||
unusedInt = buffer.getU16();
|
||||
} else if (i == 11) {
|
||||
aBoolean176 = true;
|
||||
} else if (i == 12) {
|
||||
anInt155 = buffer.method413();
|
||||
anInt155 = buffer.get32();
|
||||
} else if (i == 16) {
|
||||
aBoolean161 = true;
|
||||
} else if (i == 23) {
|
||||
anInt165 = buffer.method410();
|
||||
aByte205 = buffer.method409();
|
||||
anInt165 = buffer.getU16();
|
||||
aByte205 = buffer.get8();
|
||||
} else if (i == 24) {
|
||||
anInt188 = buffer.method410();
|
||||
anInt188 = buffer.getU16();
|
||||
} else if (i == 25) {
|
||||
anInt200 = buffer.method410();
|
||||
aByte154 = buffer.method409();
|
||||
anInt200 = buffer.getU16();
|
||||
aByte154 = buffer.get8();
|
||||
} else if (i == 26) {
|
||||
anInt164 = buffer.method410();
|
||||
anInt164 = buffer.getU16();
|
||||
} else if ((i >= 30) && (i < 35)) {
|
||||
if (aStringArray168 == null) {
|
||||
aStringArray168 = new String[5];
|
||||
}
|
||||
aStringArray168[i - 30] = buffer.method415();
|
||||
aStringArray168[i - 30] = buffer.getString();
|
||||
if (aStringArray168[i - 30].equalsIgnoreCase("hidden")) {
|
||||
aStringArray168[i - 30] = null;
|
||||
}
|
||||
@@ -524,52 +524,52 @@ public class ObjType {
|
||||
if (aStringArray189 == null) {
|
||||
aStringArray189 = new String[5];
|
||||
}
|
||||
aStringArray189[i - 35] = buffer.method415();
|
||||
aStringArray189[i - 35] = buffer.getString();
|
||||
} else if (i == 40) {
|
||||
int j = buffer.method408();
|
||||
int j = buffer.getU8();
|
||||
anIntArray156 = new int[j];
|
||||
anIntArray160 = new int[j];
|
||||
for (int k = 0; k < j; k++) {
|
||||
anIntArray156[k] = buffer.method410();
|
||||
anIntArray160[k] = buffer.method410();
|
||||
anIntArray156[k] = buffer.getU16();
|
||||
anIntArray160[k] = buffer.getU16();
|
||||
}
|
||||
} else if (i == 78) {
|
||||
anInt185 = buffer.method410();
|
||||
anInt185 = buffer.getU16();
|
||||
} else if (i == 79) {
|
||||
anInt162 = buffer.method410();
|
||||
anInt162 = buffer.getU16();
|
||||
} else if (i == 90) {
|
||||
anInt175 = buffer.method410();
|
||||
anInt175 = buffer.getU16();
|
||||
} else if (i == 91) {
|
||||
anInt197 = buffer.method410();
|
||||
anInt197 = buffer.getU16();
|
||||
} else if (i == 92) {
|
||||
anInt166 = buffer.method410();
|
||||
anInt166 = buffer.getU16();
|
||||
} else if (i == 93) {
|
||||
anInt173 = buffer.method410();
|
||||
anInt173 = buffer.getU16();
|
||||
} else if (i == 95) {
|
||||
anInt204 = buffer.method410();
|
||||
anInt204 = buffer.getU16();
|
||||
} else if (i == 97) {
|
||||
anInt179 = buffer.method410();
|
||||
anInt179 = buffer.getU16();
|
||||
} else if (i == 98) {
|
||||
anInt163 = buffer.method410();
|
||||
anInt163 = buffer.getU16();
|
||||
} else if ((i >= 100) && (i < 110)) {
|
||||
if (anIntArray193 == null) {
|
||||
anIntArray193 = new int[10];
|
||||
anIntArray201 = new int[10];
|
||||
}
|
||||
anIntArray193[i - 100] = buffer.method410();
|
||||
anIntArray201[i - 100] = buffer.method410();
|
||||
anIntArray193[i - 100] = buffer.getU16();
|
||||
anIntArray201[i - 100] = buffer.getU16();
|
||||
} else if (i == 110) {
|
||||
anInt167 = buffer.method410();
|
||||
anInt167 = buffer.getU16();
|
||||
} else if (i == 111) {
|
||||
anInt192 = buffer.method410();
|
||||
anInt192 = buffer.getU16();
|
||||
} else if (i == 112) {
|
||||
anInt191 = buffer.method410();
|
||||
anInt191 = buffer.getU16();
|
||||
} else if (i == 113) {
|
||||
anInt196 = buffer.method409();
|
||||
anInt196 = buffer.get8();
|
||||
} else if (i == 114) {
|
||||
anInt184 = buffer.method409() * 5;
|
||||
anInt184 = buffer.get8() * 5;
|
||||
} else if (i == 115) {
|
||||
anInt202 = buffer.method408();
|
||||
anInt202 = buffer.getU8();
|
||||
}
|
||||
} while (true);
|
||||
}
|
||||
|
||||
+14
-14
@@ -161,26 +161,26 @@ public class OnDemand implements Runnable {
|
||||
public void method551(FileArchive archive, Game game1) {
|
||||
String[] as = {"model_version", "anim_version", "midi_version", "map_version"};
|
||||
for (int i = 0; i < 4; i++) {
|
||||
byte[] abyte0 = archive.method571(as[i], null);
|
||||
byte[] abyte0 = archive.read(as[i], null);
|
||||
int j = abyte0.length / 2;
|
||||
Buffer buffer = new Buffer(abyte0);
|
||||
anIntArrayArray1364[i] = new int[j];
|
||||
aByteArrayArray1342[i] = new byte[j];
|
||||
for (int l = 0; l < j; l++) {
|
||||
anIntArrayArray1364[i][l] = buffer.method410();
|
||||
anIntArrayArray1364[i][l] = buffer.getU16();
|
||||
}
|
||||
}
|
||||
String[] as1 = {"model_crc", "anim_crc", "midi_crc", "map_crc"};
|
||||
for (int k = 0; k < 4; k++) {
|
||||
byte[] abyte1 = archive.method571(as1[k], null);
|
||||
byte[] abyte1 = archive.read(as1[k], null);
|
||||
int i1 = abyte1.length / 4;
|
||||
Buffer buffer_1 = new Buffer(abyte1);
|
||||
anIntArrayArray1365[k] = new int[i1];
|
||||
for (int l1 = 0; l1 < i1; l1++) {
|
||||
anIntArrayArray1365[k][l1] = buffer_1.method413();
|
||||
anIntArrayArray1365[k][l1] = buffer_1.get32();
|
||||
}
|
||||
}
|
||||
byte[] abyte2 = archive.method571("model_index", null);
|
||||
byte[] abyte2 = archive.read("model_index", null);
|
||||
int j1 = anIntArrayArray1364[0].length;
|
||||
aByteArray1372 = new byte[j1];
|
||||
for (int k1 = 0; k1 < j1; k1++) {
|
||||
@@ -190,7 +190,7 @@ public class OnDemand implements Runnable {
|
||||
aByteArray1372[k1] = 0;
|
||||
}
|
||||
}
|
||||
abyte2 = archive.method571("map_index", null);
|
||||
abyte2 = archive.read("map_index", null);
|
||||
Buffer class30_sub2_sub2_2 = new Buffer(abyte2);
|
||||
j1 = abyte2.length / 7;
|
||||
anIntArray1371 = new int[j1];
|
||||
@@ -198,24 +198,24 @@ public class OnDemand implements Runnable {
|
||||
anIntArray1337 = new int[j1];
|
||||
anIntArray1356 = new int[j1];
|
||||
for (int i2 = 0; i2 < j1; i2++) {
|
||||
anIntArray1371[i2] = class30_sub2_sub2_2.method410();
|
||||
anIntArray1350[i2] = class30_sub2_sub2_2.method410();
|
||||
anIntArray1337[i2] = class30_sub2_sub2_2.method410();
|
||||
anIntArray1356[i2] = class30_sub2_sub2_2.method408();
|
||||
anIntArray1371[i2] = class30_sub2_sub2_2.getU16();
|
||||
anIntArray1350[i2] = class30_sub2_sub2_2.getU16();
|
||||
anIntArray1337[i2] = class30_sub2_sub2_2.getU16();
|
||||
anIntArray1356[i2] = class30_sub2_sub2_2.getU8();
|
||||
}
|
||||
abyte2 = archive.method571("anim_index", null);
|
||||
abyte2 = archive.read("anim_index", null);
|
||||
class30_sub2_sub2_2 = new Buffer(abyte2);
|
||||
j1 = abyte2.length / 2;
|
||||
anIntArray1360 = new int[j1];
|
||||
for (int j2 = 0; j2 < j1; j2++) {
|
||||
anIntArray1360[j2] = class30_sub2_sub2_2.method410();
|
||||
anIntArray1360[j2] = class30_sub2_sub2_2.getU16();
|
||||
}
|
||||
abyte2 = archive.method571("midi_index", null);
|
||||
abyte2 = archive.read("midi_index", null);
|
||||
class30_sub2_sub2_2 = new Buffer(abyte2);
|
||||
j1 = abyte2.length;
|
||||
anIntArray1348 = new int[j1];
|
||||
for (int k2 = 0; k2 < j1; k2++) {
|
||||
anIntArray1348[k2] = class30_sub2_sub2_2.method408();
|
||||
anIntArray1348[k2] = class30_sub2_sub2_2.getU8();
|
||||
}
|
||||
aGame1343 = game1;
|
||||
aBoolean1353 = true;
|
||||
|
||||
@@ -103,20 +103,20 @@ public class PlayerEntity extends PathingEntity {
|
||||
|
||||
public void method451(Buffer buffer) {
|
||||
buffer.position = 0;
|
||||
anInt1702 = buffer.method408();
|
||||
anInt1706 = buffer.method408();
|
||||
anInt1702 = buffer.getU8();
|
||||
anInt1706 = buffer.getU8();
|
||||
aType_1698 = null;
|
||||
anInt1701 = 0;
|
||||
for (int j = 0; j < 12; j++) {
|
||||
int k = buffer.method408();
|
||||
int k = buffer.getU8();
|
||||
if (k == 0) {
|
||||
anIntArray1717[j] = 0;
|
||||
continue;
|
||||
}
|
||||
int i1 = buffer.method408();
|
||||
int i1 = buffer.getU8();
|
||||
anIntArray1717[j] = (k << 8) + i1;
|
||||
if ((j == 0) && (anIntArray1717[0] == 65535)) {
|
||||
aType_1698 = NPCType.method159(buffer.method410());
|
||||
aType_1698 = NPCType.method159(buffer.getU16());
|
||||
break;
|
||||
}
|
||||
if ((anIntArray1717[j] >= 512) && ((anIntArray1717[j] - 512) < ObjType.anInt203)) {
|
||||
@@ -127,43 +127,43 @@ public class PlayerEntity extends PathingEntity {
|
||||
}
|
||||
}
|
||||
for (int l = 0; l < 5; l++) {
|
||||
int j1 = buffer.method408();
|
||||
int j1 = buffer.getU8();
|
||||
if ((j1 < 0) || (j1 >= Game.anIntArrayArray1003[l].length)) {
|
||||
j1 = 0;
|
||||
}
|
||||
anIntArray1700[l] = j1;
|
||||
}
|
||||
super.anInt1511 = buffer.method410();
|
||||
super.anInt1511 = buffer.getU16();
|
||||
if (super.anInt1511 == 65535) {
|
||||
super.anInt1511 = -1;
|
||||
}
|
||||
super.anInt1512 = buffer.method410();
|
||||
super.anInt1512 = buffer.getU16();
|
||||
if (super.anInt1512 == 65535) {
|
||||
super.anInt1512 = -1;
|
||||
}
|
||||
super.anInt1554 = buffer.method410();
|
||||
super.anInt1554 = buffer.getU16();
|
||||
if (super.anInt1554 == 65535) {
|
||||
super.anInt1554 = -1;
|
||||
}
|
||||
super.anInt1555 = buffer.method410();
|
||||
super.anInt1555 = buffer.getU16();
|
||||
if (super.anInt1555 == 65535) {
|
||||
super.anInt1555 = -1;
|
||||
}
|
||||
super.anInt1556 = buffer.method410();
|
||||
super.anInt1556 = buffer.getU16();
|
||||
if (super.anInt1556 == 65535) {
|
||||
super.anInt1556 = -1;
|
||||
}
|
||||
super.anInt1557 = buffer.method410();
|
||||
super.anInt1557 = buffer.getU16();
|
||||
if (super.anInt1557 == 65535) {
|
||||
super.anInt1557 = -1;
|
||||
}
|
||||
super.anInt1505 = buffer.method410();
|
||||
super.anInt1505 = buffer.getU16();
|
||||
if (super.anInt1505 == 65535) {
|
||||
super.anInt1505 = -1;
|
||||
}
|
||||
aString1703 = StringUtil.method587(StringUtil.fromBase37(buffer.method414()));
|
||||
anInt1705 = buffer.method408();
|
||||
anInt1723 = buffer.method410();
|
||||
aString1703 = StringUtil.formatName(StringUtil.fromBase37(buffer.get64()));
|
||||
anInt1705 = buffer.getU8();
|
||||
anInt1723 = buffer.getU16();
|
||||
aBoolean1710 = true;
|
||||
aLong1718 = 0L;
|
||||
for (int k1 = 0; k1 < 12; k1++) {
|
||||
|
||||
@@ -71,7 +71,7 @@ public class SceneBuilder {
|
||||
public static void method173(Buffer buffer, OnDemand onDemand) {
|
||||
int i_110_ = -1;
|
||||
for (; ; ) {
|
||||
int i_111_ = buffer.method422();
|
||||
int i_111_ = buffer.getUSmart();
|
||||
if (i_111_ == 0) {
|
||||
break;
|
||||
}
|
||||
@@ -79,11 +79,11 @@ public class SceneBuilder {
|
||||
LocType type = LocType.method572(i_110_);
|
||||
type.method574(onDemand);
|
||||
for (; ; ) {
|
||||
int i_112_ = buffer.method422();
|
||||
int i_112_ = buffer.getUSmart();
|
||||
if (i_112_ == 0) {
|
||||
break;
|
||||
}
|
||||
buffer.method408();
|
||||
buffer.getU8();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -334,7 +334,7 @@ public class SceneBuilder {
|
||||
Buffer buffer = new Buffer(is);
|
||||
int i_252_ = -1;
|
||||
for (; ; ) {
|
||||
int i_253_ = buffer.method422();
|
||||
int i_253_ = buffer.getUSmart();
|
||||
if (i_253_ == 0) {
|
||||
break;
|
||||
}
|
||||
@@ -343,20 +343,20 @@ public class SceneBuilder {
|
||||
boolean bool_255_ = false;
|
||||
for (; ; ) {
|
||||
if (bool_255_) {
|
||||
int i_256_ = buffer.method422();
|
||||
int i_256_ = buffer.getUSmart();
|
||||
if (i_256_ == 0) {
|
||||
break;
|
||||
}
|
||||
buffer.method408();
|
||||
buffer.getU8();
|
||||
} else {
|
||||
int i_257_ = buffer.method422();
|
||||
int i_257_ = buffer.getUSmart();
|
||||
if (i_257_ == 0) {
|
||||
break;
|
||||
}
|
||||
i_254_ += i_257_ - 1;
|
||||
int i_258_ = i_254_ & 0x3f;
|
||||
int i_259_ = (i_254_ >> 6) & 0x3f;
|
||||
int i_260_ = buffer.method408() >> 2;
|
||||
int i_260_ = buffer.getU8() >> 2;
|
||||
int i_261_ = i_259_ + i;
|
||||
int i_262_ = i_258_ + i_250_;
|
||||
if ((i_261_ > 0) && (i_262_ > 0) && (i_261_ < 103) && (i_262_ < 103)) {
|
||||
@@ -1100,7 +1100,7 @@ public class SceneBuilder {
|
||||
if ((i_186_ >= 0) && (i_186_ < 104) && (i >= 0) && (i < 104)) {
|
||||
aByteArrayArrayArray149[i_187_][i_186_][i] = (byte) 0;
|
||||
for (; ; ) {
|
||||
int i_191_ = buffer.method408();
|
||||
int i_191_ = buffer.getU8();
|
||||
if (i_191_ == 0) {
|
||||
if (i_187_ == 0) {
|
||||
anIntArrayArrayArray129[0][i_186_][i] = -method172(932731 + i_186_ + i_190_, 556238 + i + i_185_) * 8;
|
||||
@@ -1111,7 +1111,7 @@ public class SceneBuilder {
|
||||
break;
|
||||
}
|
||||
if (i_191_ == 1) {
|
||||
int i_192_ = buffer.method408();
|
||||
int i_192_ = buffer.getU8();
|
||||
if (i_192_ == 1) {
|
||||
i_192_ = 0;
|
||||
}
|
||||
@@ -1124,7 +1124,7 @@ public class SceneBuilder {
|
||||
break;
|
||||
}
|
||||
if (i_191_ <= 49) {
|
||||
aByteArrayArrayArray130[i_187_][i_186_][i] = buffer.method409();
|
||||
aByteArrayArrayArray130[i_187_][i_186_][i] = buffer.get8();
|
||||
aByteArrayArrayArray136[i_187_][i_186_][i] = (byte) ((i_191_ - 2) / 4);
|
||||
aByteArrayArrayArray148[i_187_][i_186_][i] = (byte) (((i_191_ - 2) + i_188_) & 0x3);
|
||||
} else if (i_191_ <= 81) {
|
||||
@@ -1135,16 +1135,16 @@ public class SceneBuilder {
|
||||
}
|
||||
} else {
|
||||
for (; ; ) {
|
||||
int i_193_ = buffer.method408();
|
||||
int i_193_ = buffer.getU8();
|
||||
if (i_193_ == 0) {
|
||||
break;
|
||||
}
|
||||
if (i_193_ == 1) {
|
||||
buffer.method408();
|
||||
buffer.getU8();
|
||||
break;
|
||||
}
|
||||
if (i_193_ <= 49) {
|
||||
buffer.method408();
|
||||
buffer.getU8();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1167,14 +1167,14 @@ public class SceneBuilder {
|
||||
Buffer buffer = new Buffer(is);
|
||||
int i_203_ = -1;
|
||||
for (; ; ) {
|
||||
int i_204_ = buffer.method422();
|
||||
int i_204_ = buffer.getUSmart();
|
||||
if (i_204_ == 0) {
|
||||
break;
|
||||
}
|
||||
i_203_ += i_204_;
|
||||
int i_205_ = 0;
|
||||
for (; ; ) {
|
||||
int i_206_ = buffer.method422();
|
||||
int i_206_ = buffer.getUSmart();
|
||||
if (i_206_ == 0) {
|
||||
break;
|
||||
}
|
||||
@@ -1182,7 +1182,7 @@ public class SceneBuilder {
|
||||
int i_207_ = i_205_ & 0x3f;
|
||||
int i_208_ = (i_205_ >> 6) & 0x3f;
|
||||
int i_209_ = i_205_ >> 12;
|
||||
int i_210_ = buffer.method408();
|
||||
int i_210_ = buffer.getU8();
|
||||
int i_211_ = i_210_ >> 2;
|
||||
int i_212_ = i_210_ & 0x3;
|
||||
if ((i_209_ == i) && (i_208_ >= i_200_) && (i_208_ < (i_200_ + 8)) && (i_207_ >= i_198_) && (i_207_ < (i_198_ + 8))) {
|
||||
@@ -1231,14 +1231,14 @@ public class SceneBuilder {
|
||||
Buffer buffer = new Buffer(is);
|
||||
int i_265_ = -1;
|
||||
for (; ; ) {
|
||||
int i_266_ = buffer.method422();
|
||||
int i_266_ = buffer.getUSmart();
|
||||
if (i_266_ == 0) {
|
||||
break;
|
||||
}
|
||||
i_265_ += i_266_;
|
||||
int i_267_ = 0;
|
||||
for (; ; ) {
|
||||
int i_268_ = buffer.method422();
|
||||
int i_268_ = buffer.getUSmart();
|
||||
if (i_268_ == 0) {
|
||||
break;
|
||||
}
|
||||
@@ -1246,7 +1246,7 @@ public class SceneBuilder {
|
||||
int i_269_ = i_267_ & 0x3f;
|
||||
int i_270_ = (i_267_ >> 6) & 0x3f;
|
||||
int i_271_ = i_267_ >> 12;
|
||||
int i_272_ = buffer.method408();
|
||||
int i_272_ = buffer.getU8();
|
||||
int i_273_ = i_272_ >> 2;
|
||||
int i_274_ = i_272_ & 0x3;
|
||||
int i_275_ = i_270_ + i;
|
||||
|
||||
+12
-12
@@ -89,41 +89,41 @@ public class SeqFrame {
|
||||
int offset = 0;
|
||||
Buffer header = new Buffer(src);
|
||||
header.position = offset;
|
||||
offset += offsets.method410() + 2;
|
||||
offset += offsets.getU16() + 2;
|
||||
|
||||
Buffer tran1 = new Buffer(src);
|
||||
tran1.position = offset;
|
||||
offset += offsets.method410();
|
||||
offset += offsets.getU16();
|
||||
|
||||
Buffer tran2 = new Buffer(src);
|
||||
tran2.position = offset;
|
||||
offset += offsets.method410();
|
||||
offset += offsets.getU16();
|
||||
|
||||
Buffer del = new Buffer(src);
|
||||
del.position = offset;
|
||||
offset += offsets.method410();
|
||||
offset += offsets.getU16();
|
||||
|
||||
Buffer skel = new Buffer(src);
|
||||
skel.position = offset;
|
||||
|
||||
SeqSkeleton skeleton = new SeqSkeleton(skel);
|
||||
|
||||
int frameCount = header.method410();
|
||||
int frameCount = header.getU16();
|
||||
int[] bases = new int[500];
|
||||
int[] x = new int[500];
|
||||
int[] y = new int[500];
|
||||
int[] z = new int[500];
|
||||
|
||||
for (int i = 0; i < frameCount; i++) {
|
||||
SeqFrame frame = instances[header.method410()] = new SeqFrame();
|
||||
frame.delay = del.method408();
|
||||
SeqFrame frame = instances[header.getU16()] = new SeqFrame();
|
||||
frame.delay = del.getU8();
|
||||
frame.skeleton = skeleton;
|
||||
|
||||
int baseCount = header.method408();
|
||||
int baseCount = header.getU8();
|
||||
int lastBase = -1;
|
||||
int length = 0;
|
||||
for (int base = 0; base < baseCount; base++) {
|
||||
int flags = tran1.method408();
|
||||
int flags = tran1.getU8();
|
||||
|
||||
if (flags <= 0) {
|
||||
continue;
|
||||
@@ -151,19 +151,19 @@ public class SeqFrame {
|
||||
}
|
||||
|
||||
if ((flags & 1) != 0) {
|
||||
x[length] = tran2.method421();
|
||||
x[length] = tran2.getSmart();
|
||||
} else {
|
||||
x[length] = defaultValue;
|
||||
}
|
||||
|
||||
if ((flags & 2) != 0) {
|
||||
y[length] = tran2.method421();
|
||||
y[length] = tran2.getSmart();
|
||||
} else {
|
||||
y[length] = defaultValue;
|
||||
}
|
||||
|
||||
if ((flags & 4) != 0) {
|
||||
z[length] = tran2.method421();
|
||||
z[length] = tran2.getSmart();
|
||||
} else {
|
||||
z[length] = defaultValue;
|
||||
}
|
||||
|
||||
@@ -32,17 +32,17 @@ public class SeqSkeleton {
|
||||
* @param in the input
|
||||
*/
|
||||
public SeqSkeleton(Buffer in) {
|
||||
final int length = in.method408();
|
||||
final int length = in.getU8();
|
||||
baseTypes = new int[length];
|
||||
baseLabels = new int[length][];
|
||||
for (int group = 0; group < length; group++) {
|
||||
baseTypes[group] = in.method408();
|
||||
baseTypes[group] = in.getU8();
|
||||
}
|
||||
for (int group = 0; group < length; group++) {
|
||||
int count = in.method408();
|
||||
int count = in.getU8();
|
||||
baseLabels[group] = new int[count];
|
||||
for (int child = 0; child < count; child++) {
|
||||
baseLabels[group][child] = in.method408();
|
||||
baseLabels[group][child] = in.getU8();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+18
-18
@@ -26,8 +26,8 @@ public class SeqType {
|
||||
}
|
||||
|
||||
public static void method257(FileArchive archive) {
|
||||
Buffer buffer = new Buffer(archive.method571("seq.dat", null));
|
||||
anInt350 = buffer.method410();
|
||||
Buffer buffer = new Buffer(archive.read("seq.dat", null));
|
||||
anInt350 = buffer.getU16();
|
||||
if (aTypeArray351 == null) {
|
||||
aTypeArray351 = new SeqType[anInt350];
|
||||
}
|
||||
@@ -55,50 +55,50 @@ public class SeqType {
|
||||
|
||||
public void method259(Buffer buffer) {
|
||||
do {
|
||||
int i = buffer.method408();
|
||||
int i = buffer.getU8();
|
||||
if (i == 0) {
|
||||
break;
|
||||
}
|
||||
if (i == 1) {
|
||||
anInt352 = buffer.method408();
|
||||
anInt352 = buffer.getU8();
|
||||
anIntArray353 = new int[anInt352];
|
||||
anIntArray354 = new int[anInt352];
|
||||
anIntArray355 = new int[anInt352];
|
||||
for (int j = 0; j < anInt352; j++) {
|
||||
anIntArray353[j] = buffer.method410();
|
||||
anIntArray354[j] = buffer.method410();
|
||||
anIntArray353[j] = buffer.getU16();
|
||||
anIntArray354[j] = buffer.getU16();
|
||||
if (anIntArray354[j] == 65535) {
|
||||
anIntArray354[j] = -1;
|
||||
}
|
||||
anIntArray355[j] = buffer.method410();
|
||||
anIntArray355[j] = buffer.getU16();
|
||||
}
|
||||
} else if (i == 2) {
|
||||
anInt356 = buffer.method410();
|
||||
anInt356 = buffer.getU16();
|
||||
} else if (i == 3) {
|
||||
int k = buffer.method408();
|
||||
int k = buffer.getU8();
|
||||
anIntArray357 = new int[k + 1];
|
||||
for (int l = 0; l < k; l++) {
|
||||
anIntArray357[l] = buffer.method408();
|
||||
anIntArray357[l] = buffer.getU8();
|
||||
}
|
||||
anIntArray357[k] = 9999999;
|
||||
} else if (i == 4) {
|
||||
aBoolean358 = true;
|
||||
} else if (i == 5) {
|
||||
anInt359 = buffer.method408();
|
||||
anInt359 = buffer.getU8();
|
||||
} else if (i == 6) {
|
||||
anInt360 = buffer.method410();
|
||||
anInt360 = buffer.getU16();
|
||||
} else if (i == 7) {
|
||||
anInt361 = buffer.method410();
|
||||
anInt361 = buffer.getU16();
|
||||
} else if (i == 8) {
|
||||
anInt362 = buffer.method408();
|
||||
anInt362 = buffer.getU8();
|
||||
} else if (i == 9) {
|
||||
anInt363 = buffer.method408();
|
||||
anInt363 = buffer.getU8();
|
||||
} else if (i == 10) {
|
||||
anInt364 = buffer.method408();
|
||||
anInt364 = buffer.getU8();
|
||||
} else if (i == 11) {
|
||||
anInt365 = buffer.method408();
|
||||
anInt365 = buffer.getU8();
|
||||
} else if (i == 12) {
|
||||
unusedInt = buffer.method413();
|
||||
unusedInt = buffer.get32();
|
||||
} else {
|
||||
System.out.println("Error unrecognised seq config code: " + i);
|
||||
}
|
||||
|
||||
@@ -20,19 +20,19 @@ public class SoundEnvelope {
|
||||
}
|
||||
|
||||
public void method325(Buffer buffer) {
|
||||
anInt540 = buffer.method408();
|
||||
anInt538 = buffer.method413();
|
||||
anInt539 = buffer.method413();
|
||||
anInt540 = buffer.getU8();
|
||||
anInt538 = buffer.get32();
|
||||
anInt539 = buffer.get32();
|
||||
method326(buffer);
|
||||
}
|
||||
|
||||
public void method326(Buffer buffer) {
|
||||
anInt535 = buffer.method408();
|
||||
anInt535 = buffer.getU8();
|
||||
anIntArray536 = new int[anInt535];
|
||||
anIntArray537 = new int[anInt535];
|
||||
for (int i = 0; i < anInt535; i++) {
|
||||
anIntArray536[i] = buffer.method410();
|
||||
anIntArray537[i] = buffer.method410();
|
||||
anIntArray536[i] = buffer.getU16();
|
||||
anIntArray537[i] = buffer.getU16();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -70,24 +70,24 @@ public class SoundFilter {
|
||||
}
|
||||
|
||||
public void method545(Buffer buffer, SoundEnvelope envelope) {
|
||||
int i = buffer.method408();
|
||||
int i = buffer.getU8();
|
||||
anIntArray665[0] = i >> 4;
|
||||
anIntArray665[1] = i & 0xf;
|
||||
if (i != 0) {
|
||||
anIntArray668[0] = buffer.method410();
|
||||
anIntArray668[1] = buffer.method410();
|
||||
int j = buffer.method408();
|
||||
anIntArray668[0] = buffer.getU16();
|
||||
anIntArray668[1] = buffer.getU16();
|
||||
int j = buffer.getU8();
|
||||
for (int k = 0; k < 2; k++) {
|
||||
for (int l = 0; l < anIntArray665[k]; l++) {
|
||||
anIntArrayArrayArray666[k][0][l] = buffer.method410();
|
||||
anIntArrayArrayArray667[k][0][l] = buffer.method410();
|
||||
anIntArrayArrayArray666[k][0][l] = buffer.getU16();
|
||||
anIntArrayArrayArray667[k][0][l] = buffer.getU16();
|
||||
}
|
||||
}
|
||||
for (int i1 = 0; i1 < 2; i1++) {
|
||||
for (int j1 = 0; j1 < anIntArray665[i1]; j1++) {
|
||||
if ((j & (1 << (i1 * 4) << j1)) != 0) {
|
||||
anIntArrayArrayArray666[i1][1][j1] = buffer.method410();
|
||||
anIntArrayArrayArray667[i1][1][j1] = buffer.method410();
|
||||
anIntArrayArrayArray666[i1][1][j1] = buffer.getU16();
|
||||
anIntArrayArrayArray667[i1][1][j1] = buffer.getU16();
|
||||
} else {
|
||||
anIntArrayArrayArray666[i1][1][j1] = anIntArrayArrayArray666[i1][0][j1];
|
||||
anIntArrayArrayArray667[i1][1][j1] = anIntArrayArrayArray667[i1][0][j1];
|
||||
|
||||
@@ -236,7 +236,7 @@ public class SoundTone {
|
||||
aEnvelope_98.method325(buffer);
|
||||
aEnvelope_99 = new SoundEnvelope();
|
||||
aEnvelope_99.method325(buffer);
|
||||
int i = buffer.method408();
|
||||
int i = buffer.getU8();
|
||||
if (i != 0) {
|
||||
buffer.position--;
|
||||
aEnvelope_100 = new SoundEnvelope();
|
||||
@@ -244,7 +244,7 @@ public class SoundTone {
|
||||
aEnvelope_101 = new SoundEnvelope();
|
||||
aEnvelope_101.method325(buffer);
|
||||
}
|
||||
i = buffer.method408();
|
||||
i = buffer.getU8();
|
||||
if (i != 0) {
|
||||
buffer.position--;
|
||||
aEnvelope_102 = new SoundEnvelope();
|
||||
@@ -252,7 +252,7 @@ public class SoundTone {
|
||||
aEnvelope_103 = new SoundEnvelope();
|
||||
aEnvelope_103.method325(buffer);
|
||||
}
|
||||
i = buffer.method408();
|
||||
i = buffer.getU8();
|
||||
if (i != 0) {
|
||||
buffer.position--;
|
||||
aEnvelope_104 = new SoundEnvelope();
|
||||
@@ -261,18 +261,18 @@ public class SoundTone {
|
||||
aEnvelope_105.method325(buffer);
|
||||
}
|
||||
for (int j = 0; j < 10; j++) {
|
||||
int k = buffer.method422();
|
||||
int k = buffer.getUSmart();
|
||||
if (k == 0) {
|
||||
break;
|
||||
}
|
||||
anIntArray106[j] = k;
|
||||
anIntArray107[j] = buffer.method421();
|
||||
anIntArray108[j] = buffer.method422();
|
||||
anIntArray107[j] = buffer.getSmart();
|
||||
anIntArray108[j] = buffer.getUSmart();
|
||||
}
|
||||
anInt109 = buffer.method422();
|
||||
anInt110 = buffer.method422();
|
||||
anInt113 = buffer.method410();
|
||||
anInt114 = buffer.method410();
|
||||
anInt109 = buffer.getUSmart();
|
||||
anInt110 = buffer.getUSmart();
|
||||
anInt113 = buffer.getU16();
|
||||
anInt114 = buffer.getU16();
|
||||
aSoundFilter_111 = new SoundFilter();
|
||||
aEnvelope_112 = new SoundEnvelope();
|
||||
aSoundFilter_111.method545(buffer, aEnvelope_112);
|
||||
|
||||
@@ -20,7 +20,7 @@ public class SoundTrack {
|
||||
aBuffer_328 = new Buffer(aByteArray327);
|
||||
SoundTone.method166();
|
||||
do {
|
||||
int j = buffer.method410();
|
||||
int j = buffer.getU16();
|
||||
if (j == 65535) {
|
||||
return;
|
||||
}
|
||||
@@ -41,15 +41,15 @@ public class SoundTrack {
|
||||
|
||||
public void method242(Buffer buffer) {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
int j = buffer.method408();
|
||||
int j = buffer.getU8();
|
||||
if (j != 0) {
|
||||
buffer.position--;
|
||||
aToneArray329[i] = new SoundTone();
|
||||
aToneArray329[i].method169(buffer);
|
||||
}
|
||||
}
|
||||
anInt330 = buffer.method410();
|
||||
anInt331 = buffer.method410();
|
||||
anInt330 = buffer.getU16();
|
||||
anInt331 = buffer.getU16();
|
||||
}
|
||||
|
||||
public int method243() {
|
||||
@@ -80,19 +80,19 @@ public class SoundTrack {
|
||||
public Buffer method244(int i) {
|
||||
int k = method245(i);
|
||||
aBuffer_328.position = 0;
|
||||
aBuffer_328.method402(0x52494646);
|
||||
aBuffer_328.method403(36 + k);
|
||||
aBuffer_328.method402(0x57415645);
|
||||
aBuffer_328.method402(0x666d7420);
|
||||
aBuffer_328.method403(16);
|
||||
aBuffer_328.method400(1);
|
||||
aBuffer_328.method400(1);
|
||||
aBuffer_328.method403(22050);
|
||||
aBuffer_328.method403(22050);
|
||||
aBuffer_328.method400(1);
|
||||
aBuffer_328.method400(8);
|
||||
aBuffer_328.method402(0x64617461);
|
||||
aBuffer_328.method403(k);
|
||||
aBuffer_328.put32(0x52494646);
|
||||
aBuffer_328.put32LE(36 + k);
|
||||
aBuffer_328.put32(0x57415645);
|
||||
aBuffer_328.put32(0x666d7420);
|
||||
aBuffer_328.put32LE(16);
|
||||
aBuffer_328.put16LE(1);
|
||||
aBuffer_328.put16LE(1);
|
||||
aBuffer_328.put32LE(22050);
|
||||
aBuffer_328.put32LE(22050);
|
||||
aBuffer_328.put16LE(1);
|
||||
aBuffer_328.put16LE(8);
|
||||
aBuffer_328.put32(0x64617461);
|
||||
aBuffer_328.put32LE(k);
|
||||
aBuffer_328.position += k;
|
||||
return aBuffer_328;
|
||||
}
|
||||
|
||||
@@ -23,8 +23,8 @@ public class SpotAnimType {
|
||||
}
|
||||
|
||||
public static void method264(FileArchive archive) {
|
||||
Buffer buffer = new Buffer(archive.method571("spotanim.dat", null));
|
||||
anInt402 = buffer.method410();
|
||||
Buffer buffer = new Buffer(archive.read("spotanim.dat", null));
|
||||
anInt402 = buffer.getU16();
|
||||
if (aTypeArray403 == null) {
|
||||
aTypeArray403 = new SpotAnimType[anInt402];
|
||||
}
|
||||
@@ -39,31 +39,31 @@ public class SpotAnimType {
|
||||
|
||||
public void method265(Buffer buffer) {
|
||||
do {
|
||||
int i = buffer.method408();
|
||||
int i = buffer.getU8();
|
||||
if (i == 0) {
|
||||
return;
|
||||
}
|
||||
if (i == 1) {
|
||||
anInt405 = buffer.method410();
|
||||
anInt405 = buffer.getU16();
|
||||
} else if (i == 2) {
|
||||
anInt406 = buffer.method410();
|
||||
anInt406 = buffer.getU16();
|
||||
if (SeqType.aTypeArray351 != null) {
|
||||
aType_407 = SeqType.aTypeArray351[anInt406];
|
||||
}
|
||||
} else if (i == 4) {
|
||||
anInt410 = buffer.method410();
|
||||
anInt410 = buffer.getU16();
|
||||
} else if (i == 5) {
|
||||
anInt411 = buffer.method410();
|
||||
anInt411 = buffer.getU16();
|
||||
} else if (i == 6) {
|
||||
anInt412 = buffer.method410();
|
||||
anInt412 = buffer.getU16();
|
||||
} else if (i == 7) {
|
||||
anInt413 = buffer.method408();
|
||||
anInt413 = buffer.getU8();
|
||||
} else if (i == 8) {
|
||||
anInt414 = buffer.method408();
|
||||
anInt414 = buffer.getU8();
|
||||
} else if ((i >= 40) && (i < 50)) {
|
||||
anIntArray408[i - 40] = buffer.method410();
|
||||
anIntArray408[i - 40] = buffer.getU16();
|
||||
} else if ((i >= 50) && (i < 60)) {
|
||||
anIntArray409[i - 50] = buffer.method410();
|
||||
anIntArray409[i - 50] = buffer.getU16();
|
||||
} else {
|
||||
System.out.println("Error unrecognised spotanim config code: " + i);
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ public class StringUtil {
|
||||
|
||||
}
|
||||
|
||||
public static long getBase37(String s) {
|
||||
public static long toBase37(String s) {
|
||||
long l = 0L;
|
||||
for (int i = 0; (i < s.length()) && (i < 12); i++) {
|
||||
char c = s.charAt(i);
|
||||
@@ -65,7 +65,7 @@ public class StringUtil {
|
||||
return String.format("%d.%d.%d.%d", (ipv4 >> 24) & 0xff, (ipv4 >> 16) & 0xff, (ipv4 >> 8) & 0xff, ipv4 & 0xff);
|
||||
}
|
||||
|
||||
public static String method587(String s) {
|
||||
public static String formatName(String s) {
|
||||
if (s.length() > 0) {
|
||||
char[] ac = s.toCharArray();
|
||||
for (int j = 0; j < ac.length; j++) {
|
||||
|
||||
@@ -18,8 +18,8 @@ public class VarbitType {
|
||||
}
|
||||
|
||||
public static void method533(FileArchive archive) {
|
||||
Buffer buffer = new Buffer(archive.method571("varbit.dat", null));
|
||||
anInt645 = buffer.method410();
|
||||
Buffer buffer = new Buffer(archive.read("varbit.dat", null));
|
||||
anInt645 = buffer.getU16();
|
||||
if (aVarbitArray646 == null) {
|
||||
aVarbitArray646 = new VarbitType[anInt645];
|
||||
}
|
||||
@@ -32,29 +32,29 @@ public class VarbitType {
|
||||
VarpType.aVarpArray701[aVarbitArray646[j].anInt648].unusedBool3 = true;
|
||||
}
|
||||
}
|
||||
if (buffer.position != buffer.aByteArray1405.length) {
|
||||
if (buffer.position != buffer.data.length) {
|
||||
System.out.println("varbit load mismatch");
|
||||
}
|
||||
}
|
||||
|
||||
public void method534(Buffer buffer) {
|
||||
do {
|
||||
int j = buffer.method408();
|
||||
int j = buffer.getU8();
|
||||
if (j == 0) {
|
||||
return;
|
||||
}
|
||||
if (j == 1) {
|
||||
anInt648 = buffer.method410();
|
||||
anInt649 = buffer.method408();
|
||||
anInt650 = buffer.method408();
|
||||
anInt648 = buffer.getU16();
|
||||
anInt649 = buffer.getU8();
|
||||
anInt650 = buffer.getU8();
|
||||
} else if (j == 10) {
|
||||
unusedString = buffer.method415();
|
||||
unusedString = buffer.getString();
|
||||
} else if (j == 2) {
|
||||
aBoolean651 = true;
|
||||
} else if (j == 3) {
|
||||
unusedInt0 = buffer.method413();
|
||||
unusedInt0 = buffer.get32();
|
||||
} else if (j == 4) {
|
||||
unusedInt1 = buffer.method413();
|
||||
unusedInt1 = buffer.get32();
|
||||
} else {
|
||||
System.out.println("Error unrecognised config code: " + j);
|
||||
}
|
||||
|
||||
+10
-10
@@ -25,9 +25,9 @@ public class VarpType {
|
||||
}
|
||||
|
||||
public static void method546(FileArchive archive) {
|
||||
Buffer buffer = new Buffer(archive.method571("varp.dat", null));
|
||||
Buffer buffer = new Buffer(archive.read("varp.dat", null));
|
||||
anInt702 = 0;
|
||||
anInt700 = buffer.method410();
|
||||
anInt700 = buffer.getU16();
|
||||
if (aVarpArray701 == null) {
|
||||
aVarpArray701 = new VarpType[anInt700];
|
||||
}
|
||||
@@ -40,41 +40,41 @@ public class VarpType {
|
||||
}
|
||||
aVarpArray701[j].method547(buffer, j);
|
||||
}
|
||||
if (buffer.position != buffer.aByteArray1405.length) {
|
||||
if (buffer.position != buffer.data.length) {
|
||||
System.out.println("varptype load mismatch");
|
||||
}
|
||||
}
|
||||
|
||||
public void method547(Buffer buffer, int i) {
|
||||
do {
|
||||
int j = buffer.method408();
|
||||
int j = buffer.getU8();
|
||||
if (j == 0) {
|
||||
return;
|
||||
}
|
||||
if (j == 1) {
|
||||
unusedInt0 = buffer.method408();
|
||||
unusedInt0 = buffer.getU8();
|
||||
} else if (j == 2) {
|
||||
unusedInt1 = buffer.method408();
|
||||
unusedInt1 = buffer.getU8();
|
||||
} else if (j == 3) {
|
||||
unusedBool0 = true;
|
||||
anIntArray703[anInt702++] = i;
|
||||
} else if (j == 4) {
|
||||
unusedBool1 = false;
|
||||
} else if (j == 5) {
|
||||
anInt709 = buffer.method410();
|
||||
anInt709 = buffer.getU16();
|
||||
} else if (j == 6) {
|
||||
unusedBool2 = true;
|
||||
} else if (j == 7) {
|
||||
unusedInt2 = buffer.method413();
|
||||
unusedInt2 = buffer.get32();
|
||||
} else if (j == 8) {
|
||||
unusedInt3 = 1;
|
||||
unusedBool3 = true;
|
||||
} else if (j == 10) {
|
||||
unusedString = buffer.method415();
|
||||
unusedString = buffer.getString();
|
||||
} else if (j == 11) {
|
||||
unusedBool3 = true;
|
||||
} else if (j == 12) {
|
||||
unusedInt4 = buffer.method413();
|
||||
unusedInt4 = buffer.get32();
|
||||
} else if (j == 13) {
|
||||
unusedInt3 = 2;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user