Packet -> Buffer
This commit is contained in:
1 parent
b3329591f7
commit
c30bd0f122
37 files changed
+2369
-2271
No files matched your search
+17
-17
@@ -14,38 +14,38 @@ public class Image8 {
|
||||
public int anInt1457;
|
||||
|
||||
public Image8(FileArchive archive, String s, int i) {
|
||||
Packet packet = new Packet(archive.read(s + ".dat", null));
|
||||
Packet packet_1 = new Packet(archive.read("index.dat", null));
|
||||
packet_1.position = packet.get2U();
|
||||
anInt1456 = packet_1.get2U();
|
||||
anInt1457 = packet_1.get2U();
|
||||
int j = packet_1.get1U();
|
||||
Buffer buffer = new Buffer(archive.read(s + ".dat", null));
|
||||
Buffer buffer_1 = new Buffer(archive.read("index.dat", null));
|
||||
buffer_1.position = buffer.get2U();
|
||||
anInt1456 = buffer_1.get2U();
|
||||
anInt1457 = buffer_1.get2U();
|
||||
int j = buffer_1.get1U();
|
||||
palette = new int[j];
|
||||
for (int k = 0; k < (j - 1); k++) {
|
||||
palette[k + 1] = packet_1.get3();
|
||||
palette[k + 1] = buffer_1.get3();
|
||||
}
|
||||
for (int l = 0; l < i; l++) {
|
||||
packet_1.position += 2;
|
||||
packet.position += packet_1.get2U() * packet_1.get2U();
|
||||
packet_1.position++;
|
||||
buffer_1.position += 2;
|
||||
buffer.position += buffer_1.get2U() * buffer_1.get2U();
|
||||
buffer_1.position++;
|
||||
}
|
||||
anInt1454 = packet_1.get1U();
|
||||
anInt1455 = packet_1.get1U();
|
||||
anInt1452 = packet_1.get2U();
|
||||
anInt1453 = packet_1.get2U();
|
||||
int i1 = packet_1.get1U();
|
||||
anInt1454 = buffer_1.get1U();
|
||||
anInt1455 = buffer_1.get1U();
|
||||
anInt1452 = buffer_1.get2U();
|
||||
anInt1453 = buffer_1.get2U();
|
||||
int i1 = buffer_1.get1U();
|
||||
int j1 = anInt1452 * anInt1453;
|
||||
pixels = new byte[j1];
|
||||
if (i1 == 0) {
|
||||
for (int k1 = 0; k1 < j1; k1++) {
|
||||
pixels[k1] = packet.get1();
|
||||
pixels[k1] = buffer.get1();
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (i1 == 1) {
|
||||
for (int l1 = 0; l1 < anInt1452; l1++) {
|
||||
for (int i2 = 0; i2 < anInt1453; i2++) {
|
||||
pixels[l1 + (i2 * anInt1452)] = packet.get1();
|
||||
pixels[l1 + (i2 * anInt1452)] = buffer.get1();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user