started looking into ps2 rasters again

This commit is contained in:
aap
2016-07-16 09:13:25 +02:00
parent 40fc1e24fc
commit 14547ef830
4 changed files with 265 additions and 71 deletions

View File

@@ -128,14 +128,17 @@ main(int argc, char *argv[])
StreamFile s;
s.open(argv[1], "rb");
ChunkHeaderInfo header;
ChunkHeaderInfo header, last;
while(readChunkHeaderInfo(&s, &header)){
if(header.type == 0)
break;
last = header;
if(argc == 2)
readchunk(&s, &header, 0);
}
printf("%x %x %x\n", header.version, header.build,
libraryIDPack(header.version, header.build));
printf("%x %x %x\n", last.version, last.build,
libraryIDPack(last.version, last.build));
s.close();
return 0;