NWMUDS:InitializeWithVersion: Difference between revisions

Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x001B0302] |- | 1 | ? |- | 2-11 | See below structure. |- | 12 | u16, unknown |- ..."
 
 
(9 intermediate revisions by the same user not shown)
Line 9: Line 9:
|-
|-
| 1
| 1
| ?
| Sharedmem size.
|-
|-
| 2-11
| 2-11
| See below structure.
| Input [[NWM_Services|NodeInfo]] structure.
|-
|-
| 12
| 12
| u16, unknown
| u16 version. 0x400 is the latest one as of the latest NWM-module from [[9.0.0-20|9.0.0-X]].
|-
|-
| 13
| 13
Line 21: Line 21:
|-
|-
| 14
| 14
| Handle
| Sharedmem handle.
|}
|}


Line 40: Line 40:
|-
|-
| 3
| 3
| Output handle
| Output event handle. [[NWMUDS:GetConnectionStatus]] is used once this event is signaled for determining the event cause, etc.
|}
|}


=Input Structure=
=Description=
{| class="wikitable" border="1"
This initializes NWMUDS.
|-
 
!  Index Word
The sharedmem is created with mypermission=0x0, otherpermission=0x3. The only buffer(s) that are allocated under this sharedmem is the recv_buffer allocated by [[NWMUDS:Bind]].
!  Description
|-
| 0-1
| u64 ID presumably used for the UDS consoleID. This is loaded from BlkID 0x00090000 in the [[Config_Savegame|system-config]] via [[CfgS:GetConfigInfoBlk2]].
|-
| 2-7
| This is the first 0x18-bytes from BlkID 0x000A0000 in the [[Config_Savegame|system-config]] loaded via [[CfgS:GetConfigInfoBlk2]].
|-
| 8-9
| Unused?(Not initialized by [[Download_Play|dlp]] module)
|}