NWMUDS:GetApplicationData

From 3dbrew
Revision as of 18:25, 12 April 2016 by Yellows8 (talk | contribs) (→‎Description)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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).