Retrieve param.sfo entry values?
kkaazzee opened this issue · comments
Hi @maxton, I'm trying to script PkgTool to extract CONTENT_ID
and TITLE
values from (edit: PS4) pkg files. I'm running into a knowledge gap and/or functionality gap that I'm hoping you can help with.
I've been able to extract PARAM_SFO
binary data using its entry index. Once extract I'm unsure how to proceed. Naively I spotted sfo_setentry
and went looking for sfo_getentry <input.pkg> <entry_name>
.
If it's not too much trouble, will you help me understand how to pull all or individual param.sfo
entry values as plain text? Even a bit of "here's what you're missing" would be super handy.
Thanks so much. :)
I found code which is building a table of all values which later has its entries iterated to find values for entry names: https://github.com/xXxTheDarkprogramerxXx/PS3Tools/blob/master/PARAM.SFO%20Editor/PARAM.SFO/PARAM_SFO.cs#L249-L250.
Luckily I also learned it's possible to extract the entries as an SFX XML file using an SCE tool. 😬😅
Edit: Here's an example python implementation with mixed tooling: https://gist.github.com/kkaazzee/8067bbf4f89b90f641316faff950b2b9