Closed chipsTM closed 2 years ago
I believe this is not valid code actually; perhaps MapList_Names
can't be considered valid unless MapList_Request()
is called. Then you also need to wait for MapList_IsInProgress
. (You can find a reference implementation in Maniascript in PauseMenuOnline_Client.Script.txt
)
Additionally, MapList_Names
and MapList_MapUids
share the same block of memory (despite both using a different string type), which seems wrong. The Maniascript that uses these properties also never use MapList_Names
, and only use MapList_MapUids
.
For some reason calling this code (which appears to be correct) causes the game to crash with no explanation of the root cause.
I assume the expected behavior would be either an empty array/buffer (if in game menus) or a array/buffer of
wstring
s with the map names.