public void dump() {
		updateKnown();
		File imgdir = new File(Constants.getCacheDirectory() + "rsimg" + System.getProperty("file.separator"));
		if (!imgdir.exists()) {
			imgdir.mkdir();
		}
		int count = imageArchive.countImages();
		int total = count;
		try {
			for (int index = 0; index < count; index++) {
				File directory = new File(Constants.getCacheDirectory() + "rsimg" + System.getProperty("file.separator") + getArchiveList()[index]);
				if (!directory.exists()) {
					directory.mkdir();
				}
				for (int index2 = 0; index2 < imageArchive.getImage(index).getImageBeanCount(); index2++) {
					BufferedImage bi = imageArchive.getImage(index).getImage(index2);
					ImageIO.write(bi, "png", new File(directory + System.getProperty("file.separator") + index2 + ".png"));
					total++;
				}
			}
			log("Dumped " + total + " indices.");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}