mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-07 08:06:30 +00:00
AS1/2 better deobfuscation
This commit is contained in:
@@ -32,6 +32,10 @@ public class ReReadableInputStream extends InputStream {
|
||||
int pos = 0;
|
||||
int count = 0;
|
||||
|
||||
public int getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
public byte[] getAllRead() {
|
||||
return baos.toByteArray();
|
||||
}
|
||||
@@ -46,6 +50,7 @@ public class ReReadableInputStream extends InputStream {
|
||||
|
||||
public void setPos(int pos) throws IOException {
|
||||
if (pos > count) {
|
||||
this.pos = count;
|
||||
skip(pos - count);
|
||||
}
|
||||
this.pos = pos;
|
||||
|
||||
Reference in New Issue
Block a user