Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static String loc = signlink.findcachedir();
- public static byte[] getData(String s) {
- return FileOperations.ReadFile(s);
- }
- public static void unpackConfig(StreamLoader streamLoader) {
- stream = new Stream(getData((new StringBuilder()).append(loc).append("obj.dat").toString()));
- Stream stream = new Stream(getData((new StringBuilder()).append(loc).append("obj.idx").toString()));
- totalItems = stream.readUnsignedWord();
- streamIndices = new int[totalItems + 20000];
- int i = 2;
- for (int j = 0; j < totalItems; j++) {
- streamIndices[j] = i;
- i += stream.readUnsignedWord();
- }
- cache = new ItemDef[10];
- for (int k = 0; k < 10; k++) cache[k] = new ItemDef();
- }
Advertisement
Add Comment
Please, Sign In to add comment