Package mwt.wow.mpq

Examples of mwt.wow.mpq.ReadWriteMpqArchive.saveMetadata()


    ReadWriteMpqArchive mpqArchive = new MpqArchive(mpqFile, true);
    int count = countFiles(dir);
    int hashTableSize = Integer.highestOneBit(count * 4 / 3) << 1;
    mpqArchive.initHashtable(hashTableSize);
    addDir(mpqArchive, dir, "");
    mpqArchive.saveMetadata();
    mpqArchive.close();
    long end = System.currentTimeMillis();
    System.out.println("Took: " + (end - start) + "ms");
  }

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.