revision++;
in.close();
} catch (Exception e) {
revision = 1;
}
CheckSums s;
try {
/* Create checksum for client.jar */
s = new CheckSums();
System.out.println("Generating checksums");
m_files.put("./client.jar", s.getSHA1Checksum("client.jar"));
/* Create checksum for native libs */
File f = new File("./lib/native/");
String [] dir = f.list();
for(int i = 0; i < dir.length; i++) {
f = new File("./lib/native/" + dir[i]);
if(f.isFile()) {
m_files.put(f.getPath(), s.getSHA1Checksum(f.getPath()));
}
}
/* Create checksum for res */
f = new File("./res/");
dir = f.list();
for(int i = 0; i < dir.length; i++) {
f = new File("./res/" + dir[i]);
if(f.isFile()) {
m_files.put(f.getPath(), s.getSHA1Checksum(f.getPath()));
} else if(f.isDirectory()) {
scanDirectory(f.getPath());
}
}
/* Create updates.txt */