Use internal classnames when injecting interfaces
This commit is contained in:
@@ -1,10 +1,7 @@
|
|||||||
package net.runelite.deob.injection;
|
package net.runelite.deob.injection;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
import net.runelite.deob.ClassFile;
|
import net.runelite.deob.ClassFile;
|
||||||
import net.runelite.deob.ClassGroup;
|
import net.runelite.deob.ClassGroup;
|
||||||
import net.runelite.deob.Field;
|
import net.runelite.deob.Field;
|
||||||
@@ -221,7 +218,9 @@ public class Inject
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
String ifaceName = API_PACKAGE_BASE + a.getElement().getString();
|
String ifaceName = API_PACKAGE_BASE + a.getElement().getString();
|
||||||
Class clazz = new Class(ifaceName);
|
String ifaceNameInternal = ifaceName.replace('.', '/'); // to internal name
|
||||||
|
|
||||||
|
Class clazz = new Class(ifaceNameInternal);
|
||||||
|
|
||||||
Interfaces interfaces = other.getInterfaces();
|
Interfaces interfaces = other.getInterfaces();
|
||||||
interfaces.addInterface(clazz);
|
interfaces.addInterface(clazz);
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import org.junit.Test;
|
|||||||
|
|
||||||
public class InjectTest
|
public class InjectTest
|
||||||
{
|
{
|
||||||
private static final File DEOBFUSCATED = new File("C:\\Users\\Adam\\.m2\\repository\\net\\runelite\\rs\\rs-client\\1.0-SNAPSHOT\\rs-client-1.0-SNAPSHOT.jar");
|
private static final File DEOBFUSCATED = new File("d:/rs/07/gamepack_v18_with_annotations.jar");
|
||||||
private static final File VANILLA = new File(InjectTest.class.getResource("/gamepack_v16.jar").getFile());
|
private static final File VANILLA = new File(InjectTest.class.getResource("/gamepack_v18.jar").getFile());
|
||||||
private static final File OUT = new File("d:/rs/07/adamout.jar");
|
private static final File OUT = new File("d:/rs/07/adamout.jar");
|
||||||
|
|
||||||
private ClassGroup deob, vanilla;
|
private ClassGroup deob, vanilla;
|
||||||
|
|||||||
Reference in New Issue
Block a user