Merge pull request #1166 from Lucwousin/yar-yeet-dab

gradle: injected-client things
This commit is contained in:
Tyler Bochard
2019-07-28 17:43:51 -04:00
committed by GitHub
11 changed files with 53 additions and 143 deletions

View File

@@ -2,7 +2,6 @@ group = 'net.runelite.rs'
description = 'Injector'
def buildPath = buildDir.toString().replace('\\', '/') // this doesnt work in an ext block for some reason
def deobfuscatedJar = "${rootPath}/runescape-client/build/libs/rs-client-${project.version}.jar"
def vanillaJar = "${buildPath}/vanilla-${rsversion}.jar"

View File

@@ -26,9 +26,6 @@ package net.runelite.injector;
import java.io.File;
import java.io.IOException;
import com.google.common.io.Files;
import net.runelite.asm.ClassFile;
import net.runelite.asm.ClassGroup;
import net.runelite.deob.util.JarUtil;
@@ -72,13 +69,7 @@ public class Injector
private void save(File out) throws IOException
{
out.mkdirs();
for (ClassFile cf : vanilla.getClasses())
{
File f = new File(out, cf.getClassName() + ".class");
byte[] data = JarUtil.writeClass(vanilla, cf);
Files.write(data, f);
}
JarUtil.saveJar(vanilla, out);
}

Binary file not shown.