Buffer changes

This commit is contained in:
thedaneeffect committed 2021-03-10 04:09:14 -05:00
1 parent 65cd676f18
commit def89acd40
31 files changed
+1099 -1105

No files matched your search

+13 -13
View File
@@ -45,39 +45,39 @@ public class Image24 extends Draw2D {
public Image24(FileArchive archive, String s, int i) {
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();
buffer_1.position = buffer.get2U();
anInt1444 = buffer_1.get2U();
anInt1445 = buffer_1.get2U();
int j = buffer_1.get1U();
int[] ai = new int[j];
for (int k = 0; k < (j - 1); k++) {
ai[k + 1] = buffer_1.get24();
ai[k + 1] = buffer_1.get3();
if (ai[k + 1] == 0) {
ai[k + 1] = 1;
}
}
for (int l = 0; l < i; l++) {
buffer_1.position += 2;
buffer.position += buffer_1.getU16() * buffer_1.getU16();
buffer.position += buffer_1.get2U() * buffer_1.get2U();
buffer_1.position++;
}
anInt1442 = buffer_1.getU8();
anInt1443 = buffer_1.getU8();
anInt1440 = buffer_1.getU16();
anInt1441 = buffer_1.getU16();
int i1 = buffer_1.getU8();
anInt1442 = buffer_1.get1U();
anInt1443 = buffer_1.get1U();
anInt1440 = buffer_1.get2U();
anInt1441 = buffer_1.get2U();
int i1 = buffer_1.get1U();
int j1 = anInt1440 * anInt1441;
anIntArray1439 = new int[j1];
if (i1 == 0) {
for (int k1 = 0; k1 < j1; k1++) {
anIntArray1439[k1] = ai[buffer.getU8()];
anIntArray1439[k1] = ai[buffer.get1U()];
}
return;
}
if (i1 == 1) {
for (int l1 = 0; l1 < anInt1440; l1++) {
for (int i2 = 0; i2 < anInt1441; i2++) {
anIntArray1439[l1 + (i2 * anInt1440)] = ai[buffer.getU8()];
anIntArray1439[l1 + (i2 * anInt1440)] = ai[buffer.get1U()];
}
}
}