Editing Param.sfo
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 4: | Line 4: | ||
Samples: [[param.sfo/samples]] | Samples: [[param.sfo/samples]] | ||
'''SFO''' ('''S'''ystem '''F'''ile '''O'''bject) file format can be also found on [http://www.psdevwiki.com/ps3/Eboot.PBP#PARAM.SFO PSP], [http://www. | '''SFO''' ('''S'''ystem '''F'''ile '''O'''bject) file format can be also found on [http://www.psdevwiki.com/ps3/Eboot.PBP#PARAM.SFO PSP], [http://www.vitadevwiki.com/index.php?title=System_File_Object_%28SFO%29_%28PSF%29 PSVITA], [http://www.psdevwiki.com/ps3/PARAM.SFO PS3]. This page, as well as talk page, is mostly speculation about this [[Content_Information_Files|content information file]]. | ||
The values contained in a parameter (other naming: key) of the SFO can be simplified as inputs/outputs for/from the content: | The values contained in a parameter (other naming: key) of the SFO can be simplified as inputs/outputs for/from the content: | ||
Line 62: | Line 62: | ||
|- | |- | ||
|colspan="9" style="text-align:center; background-color:#e2ffe2;" | '''Second chunk''' | |colspan="9" style="text-align:center; background-color:#e2ffe2;" | '''Second chunk''' | ||
|- | |- | ||
| style="background-color:#55ff55;" | 0x1D0 || style="background-color:#55ff55;" | 0x04 || - || 01 00 00 00 || ? || ? | | style="background-color:#55ff55;" | 0x1D0 || style="background-color:#55ff55;" | 0x04 || - || 01 00 00 00 || ? || ? | ||
Line 73: | Line 71: | ||
| style="background-color:#dddddd;" | 0x1E8 || style="background-color:#dddddd;" | 0x10 || - || xx xx || ? || not used? | | style="background-color:#dddddd;" | 0x1E8 || style="background-color:#dddddd;" | 0x10 || - || xx xx || ? || not used? | ||
|- | |- | ||
| style="background-color:#d0000d;" | 0x1F8 || style="background-color:#d0000d;" | 0x02 || - || xx xx || ? || decimal of the product code | | style="background-color:#d0000d;" | 0x1F8 || style="background-color:#d0000d;" | 0x02 || - || xx xx || ? || decimal of the product code? | ||
|- | |- | ||
| style="background-color:#dddddd;" | 0x1FA || style="background-color:#dddddd;" | 0x06 || - || C2 AC 03 00 00 34 || ? || ? | | style="background-color:#dddddd;" | 0x1FA || style="background-color:#dddddd;" | 0x06 || - || C2 AC 03 00 00 34 || ? || ? | ||
|- | |- | ||
| style="background-color:#d0000d;" | 0x200 || style="background-color:#d0000d;" | 0x02 || - || xx xx || ? || | | style="background-color:#d0000d;" | 0x200 || style="background-color:#d0000d;" | 0x02 || - || xx xx || ? || decimal of the product code? | ||
|- | |- | ||
| style="background-color:#dddddd;" | 0x202 || style="background-color:#dddddd;" | 0x06 || - || C2 AC 03 00 00 35 || ? || ? | | style="background-color:#dddddd;" | 0x202 || style="background-color:#dddddd;" | 0x06 || - || C2 AC 03 00 00 35 || ? || ? | ||
Line 112: | Line 110: | ||
|} | |} | ||
typedef struct{ | |||
typedef struct | |||
int magic; //PSF | int magic; //PSF | ||
int version; //1.1 | int version; //1.1 | ||
Line 120: | Line 117: | ||
int indexTableEntries; | int indexTableEntries; | ||
} sfo_header_t; | } sfo_header_t; | ||
==== Index table ==== | ==== Index table ==== | ||
Line 144: | Line 140: | ||
|} | |} | ||
typedef struct{ | |||
typedef struct | u16 keyOffset; //offset of keytable + keyOffset | ||
u16 param_fmt; //enum (see below) | |||
u32 paramLen; | |||
u32 paramMaxLen; | |||
u32 dataOffset; //offset of datatable + dataOffset | |||
} indexTableEntry_t; | } indexTableEntry_t; | ||
Used on index table, type of data are: | Used on index table, type of data are: | ||
Line 231: | Line 225: | ||
| {{stylematrix}} '''01''' 00 00 00 || 00 00 00 '''01''' || 1 || 00000000 00000000 00000000 0000000'''1''' || The application does support the initial user's logout || - || 01 | | {{stylematrix}} '''01''' 00 00 00 || 00 00 00 '''01''' || 1 || 00000000 00000000 00000000 0000000'''1''' || The application does support the initial user's logout || - || 01 | ||
|- | |- | ||
| {{stylematrix}} '''02''' 00 00 00 || 00 00 00 '''02''' || 2 || 00000000 00000000 00000000 000000'''1'''0 || Enter Button Assignment | | {{stylematrix}} '''02''' 00 00 00 || 00 00 00 '''02''' || 2 || 00000000 00000000 00000000 000000'''1'''0 || Enter Button Assignment Cross button || 1.05? || 02 | ||
|- | |- | ||
| {{stylematrix}} '''04''' 00 00 00 || 00 00 00 '''04''' || 4 || 00000000 00000000 00000000 00000'''1'''00 || Menu for Warning Dialog for PS Move is displayed in the option menu || - || 03 | | {{stylematrix}} '''04''' 00 00 00 || 00 00 00 '''04''' || 4 || 00000000 00000000 00000000 00000'''1'''00 || Menu for Warning Dialog for PS Move is displayed in the option menu || - || 03 | ||
Line 239: | Line 233: | ||
| {{stylematrix}} '''10''' 00 00 00 || 00 00 00 '''10''' || 16 || 00000000 00000000 00000000 000'''1'''0000 || The application is suspended when PS button is pressed (e.g. Amazon Instant Video) || 1.05? || 05 | | {{stylematrix}} '''10''' 00 00 00 || 00 00 00 '''10''' || 16 || 00000000 00000000 00000000 000'''1'''0000 || The application is suspended when PS button is pressed (e.g. Amazon Instant Video) || 1.05? || 05 | ||
|- | |- | ||
| {{stylematrix}} '''20''' 00 00 00 || 00 00 00 '''20''' || 32 || 00000000 00000000 00000000 00'''1'''00000 || | | {{stylematrix}} '''20''' 00 00 00 || 00 00 00 '''20''' || 32 || 00000000 00000000 00000000 00'''1'''00000 || - || - || 06 | ||
|- | |- | ||
| {{stylematrix}} '''40''' 00 00 00 || 00 00 00 '''40''' || 64 || 00000000 00000000 00000000 0'''1'''000000 || The application overwrites the default behavior of the Share Menu || - || 07 | | {{stylematrix}} '''40''' 00 00 00 || 00 00 00 '''40''' || 64 || 00000000 00000000 00000000 0'''1'''000000 || The application overwrites the default behavior of the Share Menu || - || 07 | ||
Line 259: | Line 253: | ||
| {{stylematrix}} 00 '''20''' 00 00 || 00 00 '''20''' 00 || 8192 || 00000000 00000000 00'''1'''00000 00000000 || - || - || 14 | | {{stylematrix}} 00 '''20''' 00 00 || 00 00 '''20''' 00 || 8192 || 00000000 00000000 00'''1'''00000 00000000 || - || - || 14 | ||
|- | |- | ||
| {{stylematrix}} 00 '''40''' 00 00 || 00 00 '''40''' 00 || 16384 || 00000000 00000000 0'''1'''000000 00000000 || | | {{stylematrix}} 00 '''40''' 00 00 || 00 00 '''40''' 00 || 16384 || 00000000 00000000 0'''1'''000000 00000000 || - || - || 15 | ||
|- | |- | ||
| {{stylematrix}} 00 '''80''' 00 00 || 00 00 '''80''' 00 || 32768 || 00000000 00000000 '''1'''0000000 00000000 || | | {{stylematrix}} 00 '''80''' 00 00 || 00 00 '''80''' 00 || 32768 || 00000000 00000000 '''1'''0000000 00000000 || The application does not use the Download Data (?) || - || 16 | ||
|- bgcolor="#DDDDDD" | |- bgcolor="#DDDDDD" | ||
| style="background-color:black;" | || colspan="6" style="text-align:center;" | ??? | | style="background-color:black;" | || colspan="6" style="text-align:center;" | ??? | ||
|- | |- | ||
| {{stylematrix}} 00 00 '''01''' 00 || 00 '''01''' 00 00 || 65536 || 00000000 0000000'''1''' 00000000 00000000 || | | {{stylematrix}} 00 00 '''01''' 00 || 00 '''01''' 00 00 || 65536 || 00000000 0000000'''1''' 00000000 00000000 || - || - || 17 | ||
|- | |- | ||
| {{stylematrix}} 00 00 '''02''' 00 || 00 '''02''' 00 00 || 131072 || 00000000 000000'''1'''0 00000000 00000000 || - || - || 18 | | {{stylematrix}} 00 00 '''02''' 00 || 00 '''02''' 00 00 || 131072 || 00000000 000000'''1'''0 00000000 00000000 || - || - || 18 | ||
Line 279: | Line 273: | ||
| {{stylematrix}} 00 00 '''40''' 00 || 00 '''40''' 00 00 || 4194304 || 00000000 0'''1'''000000 00000000 00000000 || - || - || 23 | | {{stylematrix}} 00 00 '''40''' 00 || 00 '''40''' 00 00 || 4194304 || 00000000 0'''1'''000000 00000000 00000000 || - || - || 23 | ||
|- | |- | ||
| {{stylematrix}} 00 00 '''80''' 00 || 00 '''80''' 00 00 || 8388608 || 00000000 '''1'''0000000 00000000 00000000 || | | {{stylematrix}} 00 00 '''80''' 00 || 00 '''80''' 00 00 || 8388608 || 00000000 '''1'''0000000 00000000 00000000 || - || - || 24 | ||
|- bgcolor="#DDDDDD" | |- bgcolor="#DDDDDD" | ||
| style="background-color:black;" | || colspan="6" style="text-align:center;" | ??? | | style="background-color:black;" | || colspan="6" style="text-align:center;" | ??? | ||
Line 287: | Line 281: | ||
| {{stylematrix}} 00 00 00 '''02''' || '''02''' 00 00 00 || 33554432 || 000000'''1''' 000000000 00000000 00000000 || - || - || 26 | | {{stylematrix}} 00 00 00 '''02''' || '''02''' 00 00 00 || 33554432 || 000000'''1''' 000000000 00000000 00000000 || - || - || 26 | ||
|- | |- | ||
| {{stylematrix}} 00 00 00 '''04''' || '''04''' 00 00 00 || | | {{stylematrix}} 00 00 00 '''04''' || '''04''' 00 00 00 || 262144 || 00000'''1'''00 00000000 00000000 00000000 || - || - || 27 | ||
|- | |- | ||
| {{stylematrix}} 00 00 00 '''08''' || '''08''' 00 00 00 || 134217728 || 0000'''1'''000 00000000 00000000 00000000 || - || - || 28 | | {{stylematrix}} 00 00 00 '''08''' || '''08''' 00 00 00 || 134217728 || 0000'''1'''000 00000000 00000000 00000000 || - || - || 28 | ||
Line 293: | Line 287: | ||
| {{stylematrix}} 00 00 00 '''10''' || '''10''' 00 00 00 || 268435456 || 000'''1'''0000 00000000 00000000 00000000 || - || - || 29 | | {{stylematrix}} 00 00 00 '''10''' || '''10''' 00 00 00 || 268435456 || 000'''1'''0000 00000000 00000000 00000000 || - || - || 29 | ||
|- | |- | ||
| {{stylematrix}} 00 00 00 '''20''' || '''20''' 00 00 00 || 536870912 || 00'''1'''00000 00000000 00000000 00000000 || | | {{stylematrix}} 00 00 00 '''20''' || '''20''' 00 00 00 || 536870912 || 00'''1'''00000 00000000 00000000 00000000 || - || - || 30 | ||
|- | |- | ||
| {{stylematrix}} 00 00 00 '''40''' || '''40''' 00 00 00 || 1073741824 || 0'''1'''000000 00000000 00000000 00000000 || - || - || 31 | | {{stylematrix}} 00 00 00 '''40''' || '''40''' 00 00 00 || 1073741824 || 0'''1'''000000 00000000 00000000 00000000 || - || - || 31 | ||
|- | |- | ||
| {{stylematrix}} 00 00 00 '''80''' || '''80''' 00 00 00 || 2147483648 || '''1'''0000000 00000000 00000000 00000000 || Display Location (?) || - || 32 | | {{stylematrix}} 00 00 00 '''80''' || '''80''' 00 00 00 || 2147483648 || '''1'''0000000 00000000 00000000 00000000 || Display Location (?) || - || 32 | ||
|} | |} | ||
* | *The application does not support the initial user's logout is set per default. | ||
{ | *{{padcross}} / {{padcircle}} button assignment can be set per title using the param.sfo - it is however recommended to not deviate from the system standard as set per region/country. Without a value set, it defaults to the system standard. | ||
====CATEGORY==== | ====CATEGORY==== | ||
{{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': 0x4 (4 bytes)}} | {{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': 0x4 (4 bytes)}} | ||
{{Boxtip1|content='''Used by''': | {{Boxtip1|content='''Used by''': PS4 Game (Blu-ray Disc), PS4 Game (Digital), PS4 Game Patch, Additional Content, PS2 Classic}} | ||
See [http://www.vitadevwiki.com/index.php?title=System_File_Object_%28SFO%29_%28PSF%29#CATEGORY PS Vita Category] | |||
{| class="wikitable" style="text-align: center;border:2px | {| class="wikitable" style="text-align: center;border:2px solid #000EEE;" | ||
|- | |- | ||
| style="background-color:#505346; color:#FFFFFF;" |'''Value''' | |||
| style="background-color:#505346; color:#FFFFFF;" |'''Standard name''' | |||
|- | |||
|- | |- | ||
| | | ac || Additional Content | ||
|- | |- | ||
| | | bd || '''B'''lu-ray '''D'''isc? | ||
|- | |- | ||
| | | gd || Game Application | ||
|- | |- | ||
| | | gdc || Non-Game Big App | ||
|- | |- | ||
| | | gde || Non-Game Mini App / Video Service Native App | ||
|- | |- | ||
| | | gdk || Video Service Web App | ||
|- | |- | ||
| | | gdl || PS Cloud Beta App | ||
|- | |- | ||
| | | gdo || PS2 Classic | ||
|- | |- | ||
| | | gp || Game Application Patch | ||
|- | |- | ||
| | | gpc || Non-Game Big App Patch | ||
|- | |- | ||
| | | gpe || Non-Game Mini App Patch / Video Service Native App Patch | ||
|- | |- | ||
| | | gpk || Video Service Web App Patch | ||
|- | |- | ||
| | | gpl || PS Cloud Beta App Patch | ||
|- | |- | ||
|} | |} | ||
Line 467: | Line 347: | ||
e.g.: "01.00" | e.g.: "01.00" | ||
====DISC_NUMBER==== | ====DISC_NUMBER==== | ||
Line 524: | Line 398: | ||
====FORMAT==== | ====FORMAT==== | ||
{{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': | {{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': 0x4? (4 bytes)}} | ||
{{Boxtip1|content='''Used by''': PS4 Game (Blu-ray Disc), PS4 Game (Digital), PS4 Game Patch, Additional Content, PS2 Classic}} | {{Boxtip1|content='''Used by''': PS4 Game (Blu-ray Disc), PS4 Game (Digital), PS4 Game Patch, Additional Content, PS2 Classic}} | ||
Line 541: | Line 415: | ||
{{Boxtip1|content='''Used by''': Additional Content}} | {{Boxtip1|content='''Used by''': Additional Content}} | ||
Seen: 0x2 | |||
====PARENTAL_LEVEL==== | ====PARENTAL_LEVEL==== | ||
Line 610: | Line 483: | ||
Or typo and name of this parameter is PUBTOOL_VER? | Or typo and name of this parameter is PUBTOOL_VER? | ||
Seen: 0x1530000, 0x1930000 | Seen: 0x1530000, 0x1930000 | ||
====REMOTE_PLAY_KEY_ASSIGN==== | ====REMOTE_PLAY_KEY_ASSIGN==== | ||
Line 632: | Line 505: | ||
|- | |- | ||
| 3 || Pattern D | | 3 || Pattern D | ||
|- | |- | ||
|} | |} | ||
====SERVICE_ID_ADDCONT_ADD_x==== | ====SERVICE_ID_ADDCONT_ADD_x==== | ||
Line 693: | Line 545: | ||
====TITLE_ID==== | ====TITLE_ID==== | ||
{{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x0C (12 bytes)<br />'''param_len''': 0xA (10 bytes)}} | {{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x0C (12 bytes)<br />'''param_len''': 0xA (10 bytes)}} | ||
{{Boxtip1|content='''Used by''': PS4 Game (Blu-ray Disc), PS4 Game (Digital), PS4 Game Patch, Additional Content, PS2 Classic | {{Boxtip1|content='''Used by''': PS4 Game (Blu-ray Disc), PS4 Game (Digital), PS4 Game Patch, Additional Content, PS2 Classic}} | ||
Identifier ( [[Productcode]] ) of the content, in the format '''WXYZ12345'''. | Identifier ( [[Productcode]] ) of the content, in the format '''WXYZ12345'''. | ||
Line 716: | Line 568: | ||
See {{talk}} page. | See {{talk}} page. | ||
{{File Formats}} | {{File Formats}} | ||
<noinclude> | <noinclude>[[Category:Main]]</noinclude> | ||
[[Category:Main]] | |||
</noinclude> |