How do i repack the sprites I had to dump?
Code:
public void repackCacheIndex(int cacheIndex) {
System.out.println("Started repacking index " + cacheIndex + ".");
int indexLength = new File(indexLocation(cacheIndex, -1)).listFiles().length;
File[] file = new File(indexLocation(cacheIndex, -1)).listFiles();
try {
for (int index = 0; index < indexLength; index++) {
int fileIndex = Integer.parseInt(getFileNameWithoutExtension(file[index].toString()));
byte[] data = fileToByteArray(cacheIndex, fileIndex);
if (data != null && data.length > 0) {
cacheIndices[cacheIndex].put(data.length, data, fileIndex);
System.out.println("Repacked " + fileIndex + ".");
} else {
System.out.println("Unable to locate index " + fileIndex + ".");
}
}
} catch (Exception e) {
System.out.println("Error packing cache index " + cacheIndex + ".");
}
System.out.println("Finished repacking " + cacheIndex + ".");
}
how do i make it repack them? - I had to dump them to open them with cache suite, but they didn't appear in the suite, so i've changed them in photoshop and now i have no idea how to repack them, base; Ruse, 317.