Port Injector to main layout
Adds deobfuscator Adds injected-client Adds injector-plugin Adds runescape-client Replaces RL's apis Small bug with sprites atm, will be resolved soon. tired af. Builds, probably
This commit is contained in:
75
runescape-client/src/main/java/GzipDecompressor.java
Normal file
75
runescape-client/src/main/java/GzipDecompressor.java
Normal file
@@ -0,0 +1,75 @@
|
||||
import java.util.zip.Inflater;
|
||||
import net.runelite.mapping.Export;
|
||||
import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("go")
|
||||
@Implements("GzipDecompressor")
|
||||
public class GzipDecompressor {
|
||||
@ObfuscatedName("ck")
|
||||
@Export("__go_ck")
|
||||
public static char __go_ck;
|
||||
@ObfuscatedName("m")
|
||||
@Export("inflater")
|
||||
Inflater inflater;
|
||||
|
||||
@ObfuscatedSignature(
|
||||
signature = "(III)V",
|
||||
garbageValue = "1000000"
|
||||
)
|
||||
GzipDecompressor(int var1, int var2, int var3) {
|
||||
}
|
||||
|
||||
public GzipDecompressor() {
|
||||
this(-1, 1000000, 1000000);
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lgr;[BB)V",
|
||||
garbageValue = "-105"
|
||||
)
|
||||
@Export("decompress")
|
||||
public void decompress(Buffer var1, byte[] var2) {
|
||||
if(var1.array[var1.index] == 31 && var1.array[var1.index + 1] == -117) {
|
||||
if(this.inflater == null) {
|
||||
this.inflater = new Inflater(true);
|
||||
}
|
||||
|
||||
try {
|
||||
this.inflater.setInput(var1.array, var1.index + 10, var1.array.length - (var1.index + 8 + 10));
|
||||
this.inflater.inflate(var2);
|
||||
} catch (Exception var4) {
|
||||
this.inflater.reset();
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
|
||||
this.inflater.reset();
|
||||
} else {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)Ljq;",
|
||||
garbageValue = "-1060388349"
|
||||
)
|
||||
public static StructDefinition method3702(int var0) {
|
||||
StructDefinition var1 = (StructDefinition)StructDefinition.__jq_f.get((long)var0);
|
||||
if(var1 != null) {
|
||||
return var1;
|
||||
} else {
|
||||
byte[] var2 = StructDefinition.__jq_m.takeRecord(34, var0);
|
||||
var1 = new StructDefinition();
|
||||
if(var2 != null) {
|
||||
var1.read(new Buffer(var2));
|
||||
}
|
||||
|
||||
var1.init();
|
||||
StructDefinition.__jq_f.put(var1, (long)var0);
|
||||
return var1;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user