dflemstr
It's a ball.
Then, we create the MD5 of this and add the PXML to it:Vorporeal said:Recent posts in Aimless_E's emulator frontend thread got me thinking:
Would it be of any use to include the MD5 sum of the ISO in the PXML file? It might be useful, and any PND creator (which I'm sure people will be using instead of creating PXML files by hand) would be able to easily automate the checksum process.
Reason why this might not be possible:
Let's say we have a really really small ISO file (this isn't a real one, don't mount it! )that looks like this if opened with a text editor:
CODE
#"FGihou837#"rEOF
CODE
#"FGihou837#"rEOF<?xml version="1.0" encoding="UTF-8"><PXML> ... <md5>...</md5>
So far so good, BUT there's one problem: when libpnd loads a PND file, it looks for the <PXML> tag. So, to libpnd, everything before the <PXML> still belongs to the ISO. This is:
CODE
#"FGihou837#"rEOF<?xml version="1.0" encoding="UTF-8">
Now, as you know, the PXML file format is an XML file format, which means that the user is allowed to add a good deal of information (including 1MB of spaces) at the beginning of the file, so it's not possible to determine where the PXML starts with the current PND file format. Which means that the MD5 can't be checked, because you need to have the exact same data when hashing as when checking the hash, which is not the case, since a part of the PXML will be included when checking the hash.
Have I made myself clear?
Last edited by a moderator: