fix and optimize (except WTVIRC, it needs a lot of work)

This commit is contained in:
zefie
2025-08-12 17:44:26 -04:00
parent 733200c897
commit a85efc9968
22 changed files with 504 additions and 518 deletions

View File

@@ -34,7 +34,7 @@ class LZSS {
}
insertNode(i) {
let keyi = this.ring_buffer[i];
const keyi = this.ring_buffer[i];
let keyii = this.ring_buffer[i + 1] ^ this.ring_buffer[i + 2];
keyii = ((keyii ^ (keyii >> 4)) & 0x0F) << 8;
@@ -129,7 +129,7 @@ class LZSS {
this.parent[this.rchild[i]] = ii;
}
this.parent[ii] = this.parent[i];
let parent_link = this.parent[i];
const parent_link = this.parent[i];
if (this.rchild[parent_link] !== i) {
this.lchild[parent_link] = ii;
} else {