2010-05-18, 16:25
Thanks a lot for those links. A couple of the packs were inconveniently named with all the images in folders, so I wrote a quick java program to pull them out and place them alongside the roms.
Run this on the command line with the 1st arg being the folder that holds all the folders of artwork, and the 2nd arg is the type of image you want (0001, 0002, each give different types of artwork). Please be aware this cuts and pastes with a rename (not copy/paste).
Sample usage:
Hope this helps someone!
Code:
import java.io.File;
import java.io.IOException;
public class RenameArtwork {
public static void main(String[] args) throws IOException {
String workingDir = args[0];
String screenType = args[1];
File dir = new File(workingDir);
File[] arrFiles = dir.listFiles();
for (int i = 0; i < arrFiles.length; i++)
{
if (arrFiles[i].isDirectory()) {
File tempFile = new File(arrFiles[i].getPath() + "/" + screenType +".png");
tempFile.renameTo(new File(workingDir + arrFiles[i].getName() + ".png"));
}
}
}
}
Run this on the command line with the 1st arg being the folder that holds all the folders of artwork, and the 2nd arg is the type of image you want (0001, 0002, each give different types of artwork). Please be aware this cuts and pastes with a rename (not copy/paste).
Sample usage:
Code:
java RenameArtwork /home/nick/roms/nesartwork/ 0001
Hope this helps someone!