feat: dds stream

This commit is contained in:
TrèsAbhi committed 2023-12-25 16:49:40 -06:00
1 parent cb87a3067c
commit 6361b09129
8 files changed
+258 -23

No files matched your search

+3 -3
View File
@@ -97,13 +97,13 @@ export class ScpgStream extends PrimitiveStream {
return stringTable[id];
} else {
const length = this.uint32();
return this.consumeAscii(length);
return this.ascii(length);
}
}
case KAType.BYTE_ARRAY: {
const length = this.uint32();
return this.consumeByteArray(length);
return this.byte(length);
}
case KAType.FLOAT:
@@ -215,7 +215,7 @@ export class ScpgStream extends PrimitiveStream {
for (let index = 0; index < count; index++) {
const length = this.uint16();
const string = this.consumeAscii(length);
const string = this.ascii(length);
strings.push(string);
}