mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 00:37:55 +00:00
@@ -193,16 +193,16 @@ public class ClassPath {
|
||||
* @param inputstream
|
||||
* @throws IOException
|
||||
*/
|
||||
protected void loadClass(InputStream in) throws IOException {
|
||||
ClassReader cr = new ClassReader(in);
|
||||
ClassNode cn = new ClassNode();
|
||||
cr.accept(cn, 0);
|
||||
/*RemappingClassAdapter rca = new RemappingClassAdapter(cn,classRemapper);
|
||||
ClassNode remapped = new ClassNode();
|
||||
cn.accept(rca);*/
|
||||
classNames.add(cn.name.replace('/', '.'));
|
||||
classes.put(cn.name, cn);
|
||||
}
|
||||
protected void loadClass(InputStream in) throws IOException {
|
||||
ClassReader cr = new ClassReader(in);
|
||||
ClassNode cn = new ClassNode();
|
||||
RemappingClassAdapter rca = new RemappingClassAdapter(cn,classRemapper);
|
||||
cr.accept(rca, ClassReader.EXPAND_FRAMES);
|
||||
classNames.add(cn.name.replace('/', '.'));
|
||||
classes.put(cn.name, cn);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Determines if this classpath represents a jar file
|
||||
@@ -301,4 +301,4 @@ public class ClassPath {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user