Typhome

Untitled

Aug 1st, 2015
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. public static String loc = signlink.findcachedir();
  2.  
  3. public static byte[] getData(String s) {
  4. return FileOperations.ReadFile(s);
  5. }
  6.  
  7. public static void unpackConfig(StreamLoader streamLoader) {
  8. stream = new Stream(getData((new StringBuilder()).append(loc).append("obj.dat").toString()));
  9. Stream stream = new Stream(getData((new StringBuilder()).append(loc).append("obj.idx").toString()));
  10. totalItems = stream.readUnsignedWord();
  11. streamIndices = new int[totalItems + 20000];
  12. int i = 2;
  13. for (int j = 0; j < totalItems; j++) {
  14. streamIndices[j] = i;
  15. i += stream.readUnsignedWord();
  16. }
  17. cache = new ItemDef[10];
  18. for (int k = 0; k < 10; k++) cache[k] = new ItemDef();
  19. }
Advertisement
Add Comment
Please, Sign In to add comment