Difference between revisions of "NWMUDS:GetApplicationData"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00110040] |- | 1 | Size |} The following is located 0x100-bytes after the be...")
 
 
(One intermediate revision by the same user not shown)
Line 42: Line 42:
  
 
=Description=
 
=Description=
This loads the appdata from the beacon. This can only be used while connected to the network.
+
This loads the appdata from the current beacon. This can only be used while connected to the network(host/client).
 +
 
 +
If the input size is larger than 0x300, NWM-module uses size 0x300 instead. The actual appdata-copying code just verifies that appdata_size is <= input_size, on failure result-code 0x0 is returned with output actual_size=0(since no data was copied).

Latest revision as of 18:25, 12 April 2016

Request[edit]

Index Word Description
0 Header code [0x00110040]
1 Size

The following is located 0x100-bytes after the beginning of the above command buffer:

Index Word Description
0 (Size<<14) | 2
1 Pointer to output buf

Response[edit]

Index Word Description
0 Header code
1 Result code
2 Actual data size.

Description[edit]

This loads the appdata from the current beacon. This can only be used while connected to the network(host/client).

If the input size is larger than 0x300, NWM-module uses size 0x300 instead. The actual appdata-copying code just verifies that appdata_size is <= input_size, on failure result-code 0x0 is returned with output actual_size=0(since no data was copied).