Editing PS2bootparam.dat
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 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 ( | | 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(), | | 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 || | | wlan_ssid || 0x32 || 0x21 || string || 32 characters + null terminator | ||
|- | |- | ||
| _ || 0x52 || 0x01 || u8 || | | _ || 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 || | | wlan_pass || 0x54 || 0x40 || string || 63 + null terminator | ||
|- | |- | ||
| _ || 0x94 || 0x01 || u8 || | | _ || 0x94 || 0x01 || u8 || _ | ||
|- | |- | ||
| _ || 0x98 || 0x04 || unk || _ | | _ || 0x98 || 0x04 || unk || _ | ||
Line 54: | Line 54: | ||
| _ || 0xAE || 0x02 (?) || unk || _ | | _ || 0xAE || 0x02 (?) || unk || _ | ||
|- | |- | ||
| color_space || 0x118 || 0x02 || u16 || | | color_space || 0x118 || 0x02 || u16 || _ | ||
|- | |- | ||
| video_mode || 0x11A || 0x02 || u16 | | video_mode || 0x11A || 0x02 || u16 || max possible value 0x3FFF, known value 0x702 | ||
|- | |- | ||
| display_type || 0x11C || 0x01 || u8 || | | display_type || 0x11C || 0x01 || u8 || _ | ||
|- | |- | ||
| sound_type || 0x11D || 0x01 || u8 || | | sound_type || 0x11D || 0x01 || u8 || _ | ||
|- | |- | ||
| _ || 0x11E || unk || string || _ | | _ || 0x11E || unk || string || _ | ||
|- | |- | ||
| | | _ || 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 || | | up_convert || 0x4CC || 0x01 || u8 || _ | ||
|- | |- | ||
| | | _ || 0x4CD || 0x01 || u8 || _ | ||
|- | |- | ||
| rgb_output_range || 0x4CE || 0x01 || u8 || | | rgb_output_range || 0x4CE || 0x01 || u8 || _ | ||
|- | |- | ||
| _ || 0x4D0 || 0x08 || u64 || known value 0x800000001000007 | | _ || 0x4D0 || 0x08 || u64 || known value 0x800000001000007 | ||
|- | |- | ||
| _ || 0x4D8 || 0x01 || u8 || | | _ || 0x4D8 || 0x01 || u8 || _ | ||
|- | |- | ||
| || || || || | | || || || || | ||
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. | ||