Editing PS2bootparam.dat

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 1: Line 1:
<big>PS2 boot param file stored in dev_hdd0/tmp/game/ps2bootparam.dat used to pass settings from GameOS to emulator after unloading LV2.
<big>PS2 boot param file stored in dev_hdd0/tmp/game/ps2bootparam.dat used to pass settings from GameOS to emulator after unloading LV2.  
</big>
</big>
===File layout===
===File layout===
Line 6: Line 6:
! Name !! offset !! size !! type !! notes
! Name !! offset !! size !! type !! notes
|-
|-
| rtc_epoch || 0x00 || 0x08 || u64 || time since epoch in seconds (GMT)
| rtc_epoch || 0x00 || 0x08 || u64 || time since epoch in seconds (hex)
|-
|-
| target_id || 0x08 || 0x02 || u16 || [[Product_Code]]
| target_id || 0x08 || 0x02 || u16 || [[Product_Code]]
Line 20: Line 20:
| system_lang || 0x2D || 0x01 || u8 || 2 digits code from  [[Languages]] is used (in hex form)
| system_lang || 0x2D || 0x01 || u8 || 2 digits code from  [[Languages]] is used (in hex form)
|-
|-
| time_zone || 0x2E || 0x02 || u16 || sys_time_get_timezone(), offset from GMT in minutes. Used as signed 11 bit value, can be read from ps2 GetOsdConfigParam/SetOsdConfigParam.
| time_zone || 0x2E || 0x02 || u16 || sys_time_get_timezone(), known value 0x3E
|-
|-
| summer_time || 0x30 || 0x01 || u8 || "/setting/dateTime/summerTime", known value 0.
| summer_time || 0x30 || 0x01 || u8 || "/setting/dateTime/summerTime", known value 0
|-
|-
| net_device || 0x31 || 0x01 || u8 || xsettings "/setting/net/device", known value 1 (enabled wifi?)
| net_device || 0x31 || 0x01 || u8 || xsettings "/setting/net/device", known value 1 (enabled wifi?)
|-
|-
| wlan_ssid || 0x32 || 0x20 || string || 32 characters
| wlan_ssid || 0x32 || 0x21 || string || 32 characters + null terminator
|-
|-
| _ || 0x52 || 0x01 || u8 || always 0 seems to be used as null terminator for wlan_ssid
| _ || 0x52 || 0x01 || u8 || _
|-
|-
| net_authProto || 0x53 || 0x01 || u8 || "/setting/net/authProto", known value 7 (wlan encryption type?)
| net_authProto || 0x53 || 0x01 || u8 || "/setting/net/authProto", known value 7 (wlan encryption type?)
|-
|-
| wlan_pass || 0x54 || 0x40 || string || max 64 bytes
| wlan_pass || 0x54 || 0x40 || string || 63 + null terminator
|-
|-
| _ || 0x94 || 0x01 || u8 || always 0 seems to be used as null terminator for wlan_pass
| _ || 0x94 || 0x01 || u8 || _
|-
|-
| _ || 0x98 || 0x04 || unk || _
| _ || 0x98 || 0x04 || unk || _
Line 54: Line 54:
| _ || 0xAE || 0x02 (?) || unk || _
| _ || 0xAE || 0x02 (?) || unk || _
|-
|-
| color_space || 0x118 || 0x02 || u16 || /setting/display/colorSpace
| color_space || 0x118 || 0x02 || u16 || _
|-
|-
| video_mode || 0x11A || 0x02 || u16 bitfield || Using CellVideoOutDisplayMode derived from CellVideoOutDeviceInfo (or'ed in loop for all available modes(max32)).
| video_mode || 0x11A || 0x02 || u16 || max possible value 0x3FFF, known value 0x702
CELL_VIDEO_OUT_RESOLUTION_480:
  0x0001 = CELL_VIDEO_OUT_ASPECT_4_3 | CELL_VIDEO_OUT_SCAN_MODE_PROGRESSIVE
  0x0002 = CELL_VIDEO_OUT_ASPECT_4_3 | CELL_VIDEO_OUT_SCAN_MODE_INTERLACE
  0x0004 = CELL_VIDEO_OUT_ASPECT_16_9 | CELL_VIDEO_OUT_SCAN_MODE_PROGRESSIVE
  0x0008 = CELL_VIDEO_OUT_ASPECT_16_9 | CELL_VIDEO_OUT_SCAN_MODE_INTERLACE
 
CELL_VIDEO_OUT_RESOLUTION_576:
  0x0010 = CELL_VIDEO_OUT_ASPECT_4_3 | CELL_VIDEO_OUT_SCAN_MODE_PROGRESSIVE
  0x0020 = CELL_VIDEO_OUT_ASPECT_4_3 | CELL_VIDEO_OUT_SCAN_MODE_INTERLACE
  0x0040 = CELL_VIDEO_OUT_ASPECT_16_9 | CELL_VIDEO_OUT_SCAN_MODE_PROGRESSIVE
  0x0080 = CELL_VIDEO_OUT_ASPECT_16_9 | CELL_VIDEO_OUT_SCAN_MODE_INTERLACE
 
CELL_VIDEO_OUT_RESOLUTION_720:
  0x0200 = CELL_VIDEO_OUT_REFRESH_RATE_59_94HZ
  0x1000 = CELL_VIDEO_OUT_REFRESH_RATE_50HZ
 
CELL_VIDEO_OUT_RESOLUTION_1080:
  0x0100 = CELL_VIDEO_OUT_REFRESH_RATE_59_94HZ | CELL_VIDEO_OUT_SCAN_MODE_PROGRESSIVE
  0x0400 = CELL_VIDEO_OUT_REFRESH_RATE_59_94HZ | CELL_VIDEO_OUT_SCAN_MODE_INTERLACE
  0x0800 = CELL_VIDEO_OUT_REFRESH_RATE_50HZ | CELL_VIDEO_OUT_SCAN_MODE_PROGRESSIVE
  0x2000 = CELL_VIDEO_OUT_REFRESH_RATE_50HZ | CELL_VIDEO_OUT_SCAN_MODE_INTERLACE
|-
|-
| display_type || 0x11C || 0x01 || u8 || CellVideoOutPortType
| display_type || 0x11C || 0x01 || u8 || _
0x00 = CELL_VIDEO_OUT_PORT_NONE
0x01 = CELL_VIDEO_OUT_PORT_HDMI
0x41 = CELL_VIDEO_OUT_PORT_NETWORK
0x81 = CELL_VIDEO_OUT_PORT_COMPOSITE_S
0x82 = CELL_VIDEO_OUT_PORT_D
0x83 = CELL_VIDEO_OUT_PORT_COMPONENT
0x84 = CELL_VIDEO_OUT_PORT_RGB
0x85 = CELL_VIDEO_OUT_PORT_AVMULTI_SCART
0x86 = CELL_VIDEO_OUT_PORT_DSUB
|-
|-
| sound_type || 0x11D || 0x01 || u8 ||  
| sound_type || 0x11D || 0x01 || u8 || _
|-
|-
| _ || 0x11E || unk || string || _
| _ || 0x11E || unk || string || _
|-
|-
| screen_saver_start_time || 0x220 || 0x04 || u32 || 300/600/1200/1800 depending on /setting/display/screenSaver/startTime
| _ || 0x220 || 0x04 || u32 || _
|-
|-
| net_enable || 0x224 || 0x01 || u8 || xregistry "/setting/net/enable"
| net_enable || 0x224 || 0x01 || u8 || xregistry "/setting/net/enable"
Line 120: Line 90:
| _ || 0x44C || 0x80 || unk || _
| _ || 0x44C || 0x80 || unk || _
|-
|-
| up_convert || 0x4CC || 0x01 || u8 || /setting/game/emuUpConvert
| up_convert || 0x4CC || 0x01 || u8 || _
|-
|-
| smoothing || 0x4CD || 0x01 || u8 || /setting/game/emuSmoothing
| _ || 0x4CD || 0x01 || u8 || _
|-
|-
| rgb_output_range || 0x4CE || 0x01 || u8 || /setting/display/rgbOutputRange
| rgb_output_range || 0x4CE || 0x01 || u8 || _
|-
|-
| _ || 0x4D0 || 0x08 || u64 || known value 0x800000001000007
| _ || 0x4D0 || 0x08 || u64 || known value 0x800000001000007
|-
|-
| _ || 0x4D8 || 0x01 || u8 || if (vsh::GetReleaseTarget(void) == 6) then 3. else 1
| _ || 0x4D8 || 0x01 || u8 || _
|-
| vibration_enable || 0x4E0 || 0x01 || u8 || /setting/pad/vibrationEnable
|-
| auto_power_off || 0x4E4 || 0x04 || u32 || In seconds. Using value from /setting/system/autoPowerOff x 3600. When /setting/system/autoPowerOffDebug is not zero different value is used. Set to 0 if /setting/system/autoPowerOffEx is 0
|-
| pad_auto_power_off || 0x4E8 || 0x01 || u8 || Using value from /setting/pad/autoPowerOff. When /setting/system/autoPowerOffDebug is not zero value 0xFF is used.
|-
|-
| || || || ||
| || || || ||
Line 140: Line 104:
|}
|}
Note: This table for now only cover first 0x4F0 of file, next block are controllers settings.
Note: This table for now only cover first 0x4F0 of file, next block are controllers settings.
<br>Current layout of this file is very different than the one above.
{{File Formats}}
<noinclude>[[Category:Main]]</noinclude>
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)