Original Post
im working on a 3DS loader, and I think do something wrong with reading the values.. I can read the first chunk ID, but after that its all downhill .. hehe in the doc: http://www.spacesimulator.net/tut4_3dsloader.html, it says that the chunk ID is stored in a two bytes hexadecimal number, and the chunk length is stored in a 4 bytes number.. shouldn't this work ( "in" is a DataInputStream):
int ID;
int length;
ID = in.readShort();
length = in.readInt();