Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note - PSP on DVD-R vs PSP on UMD #37

Open
ehw opened this issue Aug 18, 2024 · 0 comments
Open

Note - PSP on DVD-R vs PSP on UMD #37

ehw opened this issue Aug 18, 2024 · 0 comments

Comments

@ehw
Copy link
Collaborator

ehw commented Aug 18, 2024

There are prototypes of PSP games that are on DVD-R rather than UMD. These prototypes are special as they include multipart 2048 byte isos of an actual PSP image on the disc. The only other difference between these and UMDs is that PSP DVD-Rs are always understood to utilize the decrypted BOOT.BIN and not EBOOT.BIN, which seems to always be filled with null bytes. PSP UMDs use EBOOT.BIN, which are encrypted.

At this point, we always treat EBOOT.BIN as "md5" and BOOT.BIN as "alt_md5" regardless. This should probably change as nothing will ever match since you'll be comparing a purposely blank file to an encrypted file.

here are my thoughts:

so first we need to determine if the container is a psp dvd-r or a psp umd, that indicates the main executable used by the game. if its a psp dvd-r then the executable is BOOT.BIN, if it's a umd based proto then the executable is EBOOT.BIN. for psp dvd-rs, the BOOT.BIN file is decrypted already, we dont need to do anything besides take its hash. for EBOOT.BIN we need to decrypt it (and maybe strip it from non-data segments? since its an elf file?).

for psp dvd-rs:
BOOT.BIN - is md5
EBOOT.BIN - is alt md5

for psp umds:
EBOOT.BIN (decrypted) - is md5
EBOOT.BIN (encrypted) - is alt md5
then we should prolly adjust the alt composite sums to exclude any system files, so the BOOT/EBOOT.BINs, the ICON0.PNG, ICON1.PMF, PARAM.SFO, and PIC0.PNG/PIC1.PNG, UMD_DATA.BIN files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant