Difference between revisions of "NWMUDS:UpdateNetworkAttribute"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00070080] |- | 1 | u16, unknown. |- | 2 | u8, unknown. |} =Response= {| clas...")
 
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
|-
 
|-
 
| 1
 
| 1
| u16, unknown.
+
| u16 bitmask
 
|-
 
|-
 
| 2
 
| 2
| u8, unknown.
+
| u8 flag
 
|}
 
|}
  
Line 27: Line 27:
 
| Result code
 
| Result code
 
|}
 
|}
 +
 +
=Description=
 +
When flag is zero, an u16 state field is cleared using the input bitmask. When flag is non-zero, it's ORRed using the input bitmask instead. If bitmask 0x4 is clear in the input bitmask, this clears that bit in the value before actually writing the value into state.
 +
 +
This seems to be used by the host device for updating [[NWM_Services|networkstruct]]+0x16.

Latest revision as of 16:50, 2 April 2016

Request[edit]

Index Word Description
0 Header code [0x00070080]
1 u16 bitmask
2 u8 flag

Response[edit]

Index Word Description
0 Header code
1 Result code

Description[edit]

When flag is zero, an u16 state field is cleared using the input bitmask. When flag is non-zero, it's ORRed using the input bitmask instead. If bitmask 0x4 is clear in the input bitmask, this clears that bit in the value before actually writing the value into state.

This seems to be used by the host device for updating networkstruct+0x16.