pmdsky-debug-py 10.2.25__py3-none-any.whl → 10.2.26__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pmdsky_debug_py/_release.py +1 -1
- pmdsky_debug_py/eu.py +288 -2
- pmdsky_debug_py/eu_itcm.py +283 -2
- pmdsky_debug_py/jp.py +288 -2
- pmdsky_debug_py/jp_itcm.py +283 -2
- pmdsky_debug_py/na.py +288 -2
- pmdsky_debug_py/na_itcm.py +283 -2
- pmdsky_debug_py/protocol.py +155 -0
- {pmdsky_debug_py-10.2.25.dist-info → pmdsky_debug_py-10.2.26.dist-info}/METADATA +1 -1
- pmdsky_debug_py-10.2.26.dist-info/RECORD +14 -0
- pmdsky_debug_py-10.2.25.dist-info/RECORD +0 -14
- {pmdsky_debug_py-10.2.25.dist-info → pmdsky_debug_py-10.2.26.dist-info}/WHEEL +0 -0
- {pmdsky_debug_py-10.2.25.dist-info → pmdsky_debug_py-10.2.26.dist-info}/top_level.txt +0 -0
pmdsky_debug_py/jp.py
CHANGED
|
@@ -13694,7 +13694,23 @@ class JpLibsFunctions:
|
|
|
13694
13694
|
None,
|
|
13695
13695
|
)
|
|
13696
13696
|
|
|
13697
|
-
Crypto_RC4Init = Symbol(
|
|
13697
|
+
Crypto_RC4Init = Symbol(
|
|
13698
|
+
[0x9648],
|
|
13699
|
+
[0x2075A08],
|
|
13700
|
+
None,
|
|
13701
|
+
"Crypto_RC4Init",
|
|
13702
|
+
"Initializes an RC4 context.\n\nr0: context\nr1: key\nr2: key length (clamped down to a maximum of 16)",
|
|
13703
|
+
None,
|
|
13704
|
+
)
|
|
13705
|
+
|
|
13706
|
+
Crypto_RC4Encrypt = Symbol(
|
|
13707
|
+
[0x96D8],
|
|
13708
|
+
[0x2075A98],
|
|
13709
|
+
None,
|
|
13710
|
+
"Crypto_RC4Encrypt",
|
|
13711
|
+
"Encrypts/decrypts a buffer using an RC4 context.\n\nr0: context\nr1: src\nr2: size\nr3: dest",
|
|
13712
|
+
None,
|
|
13713
|
+
)
|
|
13698
13714
|
|
|
13699
13715
|
Mtx_LookAt = Symbol([0x9750], [0x2075B10], None, "Mtx_LookAt", "", None)
|
|
13700
13716
|
|
|
@@ -14364,6 +14380,33 @@ class JpLibsFunctions:
|
|
|
14364
14380
|
None,
|
|
14365
14381
|
)
|
|
14366
14382
|
|
|
14383
|
+
MD5_Init = Symbol(
|
|
14384
|
+
[0x14024],
|
|
14385
|
+
[0x20803E4],
|
|
14386
|
+
None,
|
|
14387
|
+
"MD5_Init",
|
|
14388
|
+
"Initializes an MD5 context.\n\nr0: context",
|
|
14389
|
+
None,
|
|
14390
|
+
)
|
|
14391
|
+
|
|
14392
|
+
MD5_Update = Symbol(
|
|
14393
|
+
[0x14064],
|
|
14394
|
+
[0x2080424],
|
|
14395
|
+
None,
|
|
14396
|
+
"MD5_Update",
|
|
14397
|
+
"Updates an MD5 context using a buffer's bytes.\n\nr0: context\nr1: buffer\nr2: size of buffer",
|
|
14398
|
+
None,
|
|
14399
|
+
)
|
|
14400
|
+
|
|
14401
|
+
MD5_Digest = Symbol(
|
|
14402
|
+
[0x1412C],
|
|
14403
|
+
[0x20804EC],
|
|
14404
|
+
None,
|
|
14405
|
+
"MD5_Digest",
|
|
14406
|
+
"Calculates and stores an MD5 hash into a destination buffer. The MD5 context is zeroed-out after this operation.\n\nr0: [output] hash buffer (16 bytes)\nr1: context",
|
|
14407
|
+
None,
|
|
14408
|
+
)
|
|
14409
|
+
|
|
14367
14410
|
PM_ForceToPowerOff = Symbol(
|
|
14368
14411
|
[0x15F34],
|
|
14369
14412
|
[0x20822F4],
|
|
@@ -17851,6 +17894,249 @@ class JpOverlay0Functions:
|
|
|
17851
17894
|
None,
|
|
17852
17895
|
)
|
|
17853
17896
|
|
|
17897
|
+
close = Symbol(
|
|
17898
|
+
[0x11E60],
|
|
17899
|
+
[0x22D0080],
|
|
17900
|
+
None,
|
|
17901
|
+
"close",
|
|
17902
|
+
"Closes a file descriptor.\n\nr0: file descriptor\nreturn: 0 on success, or a negative value representing an error",
|
|
17903
|
+
None,
|
|
17904
|
+
)
|
|
17905
|
+
|
|
17906
|
+
socket = Symbol(
|
|
17907
|
+
[0x12738],
|
|
17908
|
+
[0x22D0958],
|
|
17909
|
+
None,
|
|
17910
|
+
"socket",
|
|
17911
|
+
"Creates a socket file descriptor for network activity.\n\nr0: domain\nr1: family\nr2: protocol\nreturn: socket file descriptor on success, negative value indicating error otherwise",
|
|
17912
|
+
None,
|
|
17913
|
+
)
|
|
17914
|
+
|
|
17915
|
+
bind = Symbol(
|
|
17916
|
+
[0x12764],
|
|
17917
|
+
[0x22D0984],
|
|
17918
|
+
None,
|
|
17919
|
+
"bind",
|
|
17920
|
+
"Binds a socket to an address.\n\nr0: socket file descriptor\nr1: address\nreturn: 0 on success, or a negative value representing an error",
|
|
17921
|
+
None,
|
|
17922
|
+
)
|
|
17923
|
+
|
|
17924
|
+
connect = Symbol(
|
|
17925
|
+
[0x12790],
|
|
17926
|
+
[0x22D09B0],
|
|
17927
|
+
None,
|
|
17928
|
+
"connect",
|
|
17929
|
+
"Connects a socket to an address.\n\nr0: socket file descriptor\nr1: address\nreturn: 0 on success, or a negative value representing an error",
|
|
17930
|
+
None,
|
|
17931
|
+
)
|
|
17932
|
+
|
|
17933
|
+
recv = Symbol(
|
|
17934
|
+
[0x127EC],
|
|
17935
|
+
[0x22D0A0C],
|
|
17936
|
+
None,
|
|
17937
|
+
"recv",
|
|
17938
|
+
"Receives a message from a connected socket.\n\nr0: socket file descriptor\nr1: destination buffer\nr2: size of buffer\nr3: flags\nreturn: number of bytes read, or a negative value representing an error",
|
|
17939
|
+
None,
|
|
17940
|
+
)
|
|
17941
|
+
|
|
17942
|
+
recvfrom = Symbol(
|
|
17943
|
+
[0x12810],
|
|
17944
|
+
[0x22D0A30],
|
|
17945
|
+
None,
|
|
17946
|
+
"recvfrom",
|
|
17947
|
+
"Receives a message from a connectionless socket, also returning the source address that sent data.\n\nr0: socket file descriptor\nr1: destination buffer\nr2: size of buffer\nr3: flags\nstack[0]: destination address; can be NULL\nstack[1]: length of destination address\nreturn: number of bytes read, or a negative value representing an error",
|
|
17948
|
+
None,
|
|
17949
|
+
)
|
|
17950
|
+
|
|
17951
|
+
send = Symbol(
|
|
17952
|
+
[0x128A0],
|
|
17953
|
+
[0x22D0AC0],
|
|
17954
|
+
None,
|
|
17955
|
+
"send",
|
|
17956
|
+
"Sends a message to a connected socket.\n\nr0: socket file descriptor\nr1: source buffer\nr2: size of buffer\nr3: flags\nreturn: number of bytes sent, or a negative value representing an error",
|
|
17957
|
+
None,
|
|
17958
|
+
)
|
|
17959
|
+
|
|
17960
|
+
sendto = Symbol(
|
|
17961
|
+
[0x128C4],
|
|
17962
|
+
[0x22D0AE4],
|
|
17963
|
+
None,
|
|
17964
|
+
"sendto",
|
|
17965
|
+
"Sends a message to a connectionless socket.\n\nr0: socket file descriptor\nr1: source buffer\nr2: size of buffer\nr3: flags\nstack[0]: target address\nstack[1]: length of target address\nreturn: number of bytes sent, or a negative value representing an error",
|
|
17966
|
+
None,
|
|
17967
|
+
)
|
|
17968
|
+
|
|
17969
|
+
CloseVeneer = Symbol(
|
|
17970
|
+
[0x12954],
|
|
17971
|
+
[0x22D0B74],
|
|
17972
|
+
None,
|
|
17973
|
+
"CloseVeneer",
|
|
17974
|
+
"Likely a linker-generated veneer for close.\n\nSee https://developer.arm.com/documentation/dui0474/k/image-structure-and-generation/linker-generated-veneers/what-is-a-veneer-\n\nr0: file descriptor\nreturn: 0 on success, or a negative value representing an error",
|
|
17975
|
+
None,
|
|
17976
|
+
)
|
|
17977
|
+
|
|
17978
|
+
fcntl = Symbol(
|
|
17979
|
+
[0x12B58],
|
|
17980
|
+
[0x22D0D78],
|
|
17981
|
+
None,
|
|
17982
|
+
"fcntl",
|
|
17983
|
+
"Performs an operation on a file descriptor.\n\nr0: file descriptor\nr1: operation\nr2: operation-specific argument\nreturn: operation-specific value",
|
|
17984
|
+
None,
|
|
17985
|
+
)
|
|
17986
|
+
|
|
17987
|
+
InitWfc = Symbol(
|
|
17988
|
+
[0x1AD20],
|
|
17989
|
+
[0x22D8F40],
|
|
17990
|
+
None,
|
|
17991
|
+
"InitWfc",
|
|
17992
|
+
"Just a guess. Repeatedly calling this eventually results in a DNS query for conntest.nintendowifi.net and allows for use of the socket functions.\n\nreturn: status?",
|
|
17993
|
+
None,
|
|
17994
|
+
)
|
|
17995
|
+
|
|
17996
|
+
SocketCastError = Symbol(
|
|
17997
|
+
[0x38514],
|
|
17998
|
+
[0x22F6734],
|
|
17999
|
+
None,
|
|
18000
|
+
"SocketCastError",
|
|
18001
|
+
"Casts a value to a new value, if it is negative. Mostly used in socket functions to cast any potential errors to -1.\n\nr0: original value\nr1: new value to cast an error as, if original value is negative\nreturn: original value if non-negative, new value otherwise",
|
|
18002
|
+
None,
|
|
18003
|
+
)
|
|
18004
|
+
|
|
18005
|
+
SocketCreate = Symbol(
|
|
18006
|
+
[0x3852C],
|
|
18007
|
+
[0x22F674C],
|
|
18008
|
+
None,
|
|
18009
|
+
"SocketCreate",
|
|
18010
|
+
"A wrapper for socket, casting any errors to -1.\n\nr0: domain\nr1: family\nr2: protocol\nreturn: socket file descriptor on success, -1 on an error",
|
|
18011
|
+
None,
|
|
18012
|
+
)
|
|
18013
|
+
|
|
18014
|
+
SocketClose = Symbol(
|
|
18015
|
+
[0x38540],
|
|
18016
|
+
[0x22F6760],
|
|
18017
|
+
None,
|
|
18018
|
+
"SocketClose",
|
|
18019
|
+
"A wrapper for close, casting any errors to -1.\n\nr0: file descriptor\nreturn: 0 on success, -1 on an error",
|
|
18020
|
+
None,
|
|
18021
|
+
)
|
|
18022
|
+
|
|
18023
|
+
SocketBind = Symbol(
|
|
18024
|
+
[0x38568],
|
|
18025
|
+
[0x22F6788],
|
|
18026
|
+
None,
|
|
18027
|
+
"SocketBind",
|
|
18028
|
+
"A wrapper for bind, casting any errors to -1.\n\nr0: socket file descriptor\nr1: address\nr2: length of address\nreturn: 0 on success, -1 on an error",
|
|
18029
|
+
None,
|
|
18030
|
+
)
|
|
18031
|
+
|
|
18032
|
+
SocketConnect = Symbol(
|
|
18033
|
+
[0x385C8],
|
|
18034
|
+
[0x22F67E8],
|
|
18035
|
+
None,
|
|
18036
|
+
"SocketConnect",
|
|
18037
|
+
"A wrapper for connect, casting any errors to -1.\n\nr0: socket file descriptor\nr1: address\nr2: length of address\nreturn: 0 on success, -1 on an error",
|
|
18038
|
+
None,
|
|
18039
|
+
)
|
|
18040
|
+
|
|
18041
|
+
SocketRecv = Symbol(
|
|
18042
|
+
[0x38614],
|
|
18043
|
+
[0x22F6834],
|
|
18044
|
+
None,
|
|
18045
|
+
"SocketRecv",
|
|
18046
|
+
"A wrapper for recv, casting any errors to -1.\n\nr0: socket file descriptor\nr1: destination buffer\nr2: size of buffer\nr3: flags\nreturn: number of bytes read, or -1 on an error",
|
|
18047
|
+
None,
|
|
18048
|
+
)
|
|
18049
|
+
|
|
18050
|
+
SocketRecvFrom = Symbol(
|
|
18051
|
+
[0x38628],
|
|
18052
|
+
[0x22F6848],
|
|
18053
|
+
None,
|
|
18054
|
+
"SocketRecvFrom",
|
|
18055
|
+
"A wrapper for recvfrom, casting any errors to -1.\n\nr0: socket file descriptor\nr1: destination buffer\nr2: size of buffer\nr3: flags\nstack[0]: destination address; can be NULL\nstack[1]: length of destination address\nreturn: number of bytes read, or -1 on an error",
|
|
18056
|
+
None,
|
|
18057
|
+
)
|
|
18058
|
+
|
|
18059
|
+
SocketSend = Symbol(
|
|
18060
|
+
[0x38658],
|
|
18061
|
+
[0x22F6878],
|
|
18062
|
+
None,
|
|
18063
|
+
"SocketSend",
|
|
18064
|
+
"A wrapper for send, casting any errors to -1.\n\nr0: socket file descriptor\nr1: source buffer\nr2: size of buffer\nr3: flags\nreturn: number of bytes sent, or -1 on an error",
|
|
18065
|
+
None,
|
|
18066
|
+
)
|
|
18067
|
+
|
|
18068
|
+
SocketSendTo = Symbol(
|
|
18069
|
+
[0x3866C],
|
|
18070
|
+
[0x22F688C],
|
|
18071
|
+
None,
|
|
18072
|
+
"SocketSendTo",
|
|
18073
|
+
"A wrapper for sendto, casting any errors to -1.\n\nr0: socket file descriptor\nr1: source buffer\nr2: size of buffer\nr3: flags\nstack[0]: target address\nstack[1]: length of target address\nreturn: number of bytes sent, or -1 on an error",
|
|
18074
|
+
None,
|
|
18075
|
+
)
|
|
18076
|
+
|
|
18077
|
+
SocketSetBlocking = Symbol(
|
|
18078
|
+
[0x38828],
|
|
18079
|
+
[0x22F6A48],
|
|
18080
|
+
None,
|
|
18081
|
+
"SocketSetBlocking",
|
|
18082
|
+
"Sets a socket to be blocking or non-blocking.\n\nr0: socket file descriptor\nr1: blocking flag\nreturn: success",
|
|
18083
|
+
None,
|
|
18084
|
+
)
|
|
18085
|
+
|
|
18086
|
+
DoRand = Symbol(
|
|
18087
|
+
[0x38B84],
|
|
18088
|
+
[0x22F6DA4],
|
|
18089
|
+
None,
|
|
18090
|
+
"DoRand",
|
|
18091
|
+
"Generates a pseudorandom integer provided a parameter.\n\nr0: ctx\nreturn: pseudorandom integer",
|
|
18092
|
+
None,
|
|
18093
|
+
)
|
|
18094
|
+
|
|
18095
|
+
rand = Symbol(
|
|
18096
|
+
[0x38BD0],
|
|
18097
|
+
[0x22F6DF0],
|
|
18098
|
+
None,
|
|
18099
|
+
"rand",
|
|
18100
|
+
"Generates a new pseudorandom integer from the current PRNG sequence number and updates it.\n\nreturn: psuedorandom integer",
|
|
18101
|
+
None,
|
|
18102
|
+
)
|
|
18103
|
+
|
|
18104
|
+
srand = Symbol(
|
|
18105
|
+
[0x38BF0],
|
|
18106
|
+
[0x22F6E10],
|
|
18107
|
+
None,
|
|
18108
|
+
"srand",
|
|
18109
|
+
"Seeds a PRNG sequence number used by rand.\n\nr0: seed",
|
|
18110
|
+
None,
|
|
18111
|
+
)
|
|
18112
|
+
|
|
18113
|
+
RandRangeOverlay0 = Symbol(
|
|
18114
|
+
[0x38C0C],
|
|
18115
|
+
[0x22F6E2C],
|
|
18116
|
+
None,
|
|
18117
|
+
"RandRangeOverlay0",
|
|
18118
|
+
"Generates a new pseudorandom integer by performing (rand() % (y - x) + x).\n\nr0: x\nr1: y\nreturn: pseudorandom integer on the interval [x, y - 1]",
|
|
18119
|
+
None,
|
|
18120
|
+
)
|
|
18121
|
+
|
|
18122
|
+
ResolveAvailableNintendoWifi = Symbol(
|
|
18123
|
+
[0x39184],
|
|
18124
|
+
[0x22F73A4],
|
|
18125
|
+
None,
|
|
18126
|
+
"ResolveAvailableNintendoWifi",
|
|
18127
|
+
"Seemingly resolves the IP of 'pokedungeonds.available.gs.nintendowifi.net', in which 'pokedungeonds' is provided as the first parameter.\n\nr0: string",
|
|
18128
|
+
None,
|
|
18129
|
+
)
|
|
18130
|
+
|
|
18131
|
+
PasswordEncryptString = Symbol(
|
|
18132
|
+
[0x4F26C],
|
|
18133
|
+
[0x230D48C],
|
|
18134
|
+
None,
|
|
18135
|
+
"PasswordEncryptString",
|
|
18136
|
+
"Performs XOR encryption/decryption on a string, the keystream derived from srand(0x79707367) and repeatedly calling randrange(0x0, 0xFF).\n\nSeemingly called mostly for the 'passenc' field in DWC messages.\n\nr0: src\nr1: dest",
|
|
18137
|
+
None,
|
|
18138
|
+
)
|
|
18139
|
+
|
|
17854
18140
|
|
|
17855
18141
|
class JpOverlay0Data:
|
|
17856
18142
|
|
|
@@ -17866,7 +18152,7 @@ class JpOverlay0Data:
|
|
|
17866
18152
|
|
|
17867
18153
|
class JpOverlay0Section:
|
|
17868
18154
|
name = "overlay0"
|
|
17869
|
-
description = "
|
|
18155
|
+
description = "Contains supporting data and code related to the Top Menu, as well as core networking functions.\n\nThis is loaded together with overlay 1 while in the Top Menu. Since it's in overlay group 2 (together with overlay 10, which is another 'data' overlay), this overlay probably plays a similar role. It mentions several files from the BACK folder that are known backgrounds for the Top Menu."
|
|
17870
18156
|
loadaddress = 0x22BE220
|
|
17871
18157
|
length = 0x609A0
|
|
17872
18158
|
functions = JpOverlay0Functions
|
pmdsky_debug_py/jp_itcm.py
CHANGED
|
@@ -13512,7 +13512,23 @@ class JpItcmLibsFunctions:
|
|
|
13512
13512
|
None,
|
|
13513
13513
|
)
|
|
13514
13514
|
|
|
13515
|
-
Crypto_RC4Init = Symbol(
|
|
13515
|
+
Crypto_RC4Init = Symbol(
|
|
13516
|
+
None,
|
|
13517
|
+
None,
|
|
13518
|
+
None,
|
|
13519
|
+
"Crypto_RC4Init",
|
|
13520
|
+
"Initializes an RC4 context.\n\nr0: context\nr1: key\nr2: key length (clamped down to a maximum of 16)",
|
|
13521
|
+
None,
|
|
13522
|
+
)
|
|
13523
|
+
|
|
13524
|
+
Crypto_RC4Encrypt = Symbol(
|
|
13525
|
+
None,
|
|
13526
|
+
None,
|
|
13527
|
+
None,
|
|
13528
|
+
"Crypto_RC4Encrypt",
|
|
13529
|
+
"Encrypts/decrypts a buffer using an RC4 context.\n\nr0: context\nr1: src\nr2: size\nr3: dest",
|
|
13530
|
+
None,
|
|
13531
|
+
)
|
|
13516
13532
|
|
|
13517
13533
|
Mtx_LookAt = Symbol(None, None, None, "Mtx_LookAt", "", None)
|
|
13518
13534
|
|
|
@@ -14128,6 +14144,28 @@ class JpItcmLibsFunctions:
|
|
|
14128
14144
|
None,
|
|
14129
14145
|
)
|
|
14130
14146
|
|
|
14147
|
+
MD5_Init = Symbol(
|
|
14148
|
+
None, None, None, "MD5_Init", "Initializes an MD5 context.\n\nr0: context", None
|
|
14149
|
+
)
|
|
14150
|
+
|
|
14151
|
+
MD5_Update = Symbol(
|
|
14152
|
+
None,
|
|
14153
|
+
None,
|
|
14154
|
+
None,
|
|
14155
|
+
"MD5_Update",
|
|
14156
|
+
"Updates an MD5 context using a buffer's bytes.\n\nr0: context\nr1: buffer\nr2: size of buffer",
|
|
14157
|
+
None,
|
|
14158
|
+
)
|
|
14159
|
+
|
|
14160
|
+
MD5_Digest = Symbol(
|
|
14161
|
+
None,
|
|
14162
|
+
None,
|
|
14163
|
+
None,
|
|
14164
|
+
"MD5_Digest",
|
|
14165
|
+
"Calculates and stores an MD5 hash into a destination buffer. The MD5 context is zeroed-out after this operation.\n\nr0: [output] hash buffer (16 bytes)\nr1: context",
|
|
14166
|
+
None,
|
|
14167
|
+
)
|
|
14168
|
+
|
|
14131
14169
|
PM_ForceToPowerOff = Symbol(
|
|
14132
14170
|
None,
|
|
14133
14171
|
None,
|
|
@@ -17615,6 +17653,249 @@ class JpItcmOverlay0Functions:
|
|
|
17615
17653
|
None,
|
|
17616
17654
|
)
|
|
17617
17655
|
|
|
17656
|
+
close = Symbol(
|
|
17657
|
+
None,
|
|
17658
|
+
None,
|
|
17659
|
+
None,
|
|
17660
|
+
"close",
|
|
17661
|
+
"Closes a file descriptor.\n\nr0: file descriptor\nreturn: 0 on success, or a negative value representing an error",
|
|
17662
|
+
None,
|
|
17663
|
+
)
|
|
17664
|
+
|
|
17665
|
+
socket = Symbol(
|
|
17666
|
+
None,
|
|
17667
|
+
None,
|
|
17668
|
+
None,
|
|
17669
|
+
"socket",
|
|
17670
|
+
"Creates a socket file descriptor for network activity.\n\nr0: domain\nr1: family\nr2: protocol\nreturn: socket file descriptor on success, negative value indicating error otherwise",
|
|
17671
|
+
None,
|
|
17672
|
+
)
|
|
17673
|
+
|
|
17674
|
+
bind = Symbol(
|
|
17675
|
+
None,
|
|
17676
|
+
None,
|
|
17677
|
+
None,
|
|
17678
|
+
"bind",
|
|
17679
|
+
"Binds a socket to an address.\n\nr0: socket file descriptor\nr1: address\nreturn: 0 on success, or a negative value representing an error",
|
|
17680
|
+
None,
|
|
17681
|
+
)
|
|
17682
|
+
|
|
17683
|
+
connect = Symbol(
|
|
17684
|
+
None,
|
|
17685
|
+
None,
|
|
17686
|
+
None,
|
|
17687
|
+
"connect",
|
|
17688
|
+
"Connects a socket to an address.\n\nr0: socket file descriptor\nr1: address\nreturn: 0 on success, or a negative value representing an error",
|
|
17689
|
+
None,
|
|
17690
|
+
)
|
|
17691
|
+
|
|
17692
|
+
recv = Symbol(
|
|
17693
|
+
None,
|
|
17694
|
+
None,
|
|
17695
|
+
None,
|
|
17696
|
+
"recv",
|
|
17697
|
+
"Receives a message from a connected socket.\n\nr0: socket file descriptor\nr1: destination buffer\nr2: size of buffer\nr3: flags\nreturn: number of bytes read, or a negative value representing an error",
|
|
17698
|
+
None,
|
|
17699
|
+
)
|
|
17700
|
+
|
|
17701
|
+
recvfrom = Symbol(
|
|
17702
|
+
None,
|
|
17703
|
+
None,
|
|
17704
|
+
None,
|
|
17705
|
+
"recvfrom",
|
|
17706
|
+
"Receives a message from a connectionless socket, also returning the source address that sent data.\n\nr0: socket file descriptor\nr1: destination buffer\nr2: size of buffer\nr3: flags\nstack[0]: destination address; can be NULL\nstack[1]: length of destination address\nreturn: number of bytes read, or a negative value representing an error",
|
|
17707
|
+
None,
|
|
17708
|
+
)
|
|
17709
|
+
|
|
17710
|
+
send = Symbol(
|
|
17711
|
+
None,
|
|
17712
|
+
None,
|
|
17713
|
+
None,
|
|
17714
|
+
"send",
|
|
17715
|
+
"Sends a message to a connected socket.\n\nr0: socket file descriptor\nr1: source buffer\nr2: size of buffer\nr3: flags\nreturn: number of bytes sent, or a negative value representing an error",
|
|
17716
|
+
None,
|
|
17717
|
+
)
|
|
17718
|
+
|
|
17719
|
+
sendto = Symbol(
|
|
17720
|
+
None,
|
|
17721
|
+
None,
|
|
17722
|
+
None,
|
|
17723
|
+
"sendto",
|
|
17724
|
+
"Sends a message to a connectionless socket.\n\nr0: socket file descriptor\nr1: source buffer\nr2: size of buffer\nr3: flags\nstack[0]: target address\nstack[1]: length of target address\nreturn: number of bytes sent, or a negative value representing an error",
|
|
17725
|
+
None,
|
|
17726
|
+
)
|
|
17727
|
+
|
|
17728
|
+
CloseVeneer = Symbol(
|
|
17729
|
+
None,
|
|
17730
|
+
None,
|
|
17731
|
+
None,
|
|
17732
|
+
"CloseVeneer",
|
|
17733
|
+
"Likely a linker-generated veneer for close.\n\nSee https://developer.arm.com/documentation/dui0474/k/image-structure-and-generation/linker-generated-veneers/what-is-a-veneer-\n\nr0: file descriptor\nreturn: 0 on success, or a negative value representing an error",
|
|
17734
|
+
None,
|
|
17735
|
+
)
|
|
17736
|
+
|
|
17737
|
+
fcntl = Symbol(
|
|
17738
|
+
None,
|
|
17739
|
+
None,
|
|
17740
|
+
None,
|
|
17741
|
+
"fcntl",
|
|
17742
|
+
"Performs an operation on a file descriptor.\n\nr0: file descriptor\nr1: operation\nr2: operation-specific argument\nreturn: operation-specific value",
|
|
17743
|
+
None,
|
|
17744
|
+
)
|
|
17745
|
+
|
|
17746
|
+
InitWfc = Symbol(
|
|
17747
|
+
None,
|
|
17748
|
+
None,
|
|
17749
|
+
None,
|
|
17750
|
+
"InitWfc",
|
|
17751
|
+
"Just a guess. Repeatedly calling this eventually results in a DNS query for conntest.nintendowifi.net and allows for use of the socket functions.\n\nreturn: status?",
|
|
17752
|
+
None,
|
|
17753
|
+
)
|
|
17754
|
+
|
|
17755
|
+
SocketCastError = Symbol(
|
|
17756
|
+
None,
|
|
17757
|
+
None,
|
|
17758
|
+
None,
|
|
17759
|
+
"SocketCastError",
|
|
17760
|
+
"Casts a value to a new value, if it is negative. Mostly used in socket functions to cast any potential errors to -1.\n\nr0: original value\nr1: new value to cast an error as, if original value is negative\nreturn: original value if non-negative, new value otherwise",
|
|
17761
|
+
None,
|
|
17762
|
+
)
|
|
17763
|
+
|
|
17764
|
+
SocketCreate = Symbol(
|
|
17765
|
+
None,
|
|
17766
|
+
None,
|
|
17767
|
+
None,
|
|
17768
|
+
"SocketCreate",
|
|
17769
|
+
"A wrapper for socket, casting any errors to -1.\n\nr0: domain\nr1: family\nr2: protocol\nreturn: socket file descriptor on success, -1 on an error",
|
|
17770
|
+
None,
|
|
17771
|
+
)
|
|
17772
|
+
|
|
17773
|
+
SocketClose = Symbol(
|
|
17774
|
+
None,
|
|
17775
|
+
None,
|
|
17776
|
+
None,
|
|
17777
|
+
"SocketClose",
|
|
17778
|
+
"A wrapper for close, casting any errors to -1.\n\nr0: file descriptor\nreturn: 0 on success, -1 on an error",
|
|
17779
|
+
None,
|
|
17780
|
+
)
|
|
17781
|
+
|
|
17782
|
+
SocketBind = Symbol(
|
|
17783
|
+
None,
|
|
17784
|
+
None,
|
|
17785
|
+
None,
|
|
17786
|
+
"SocketBind",
|
|
17787
|
+
"A wrapper for bind, casting any errors to -1.\n\nr0: socket file descriptor\nr1: address\nr2: length of address\nreturn: 0 on success, -1 on an error",
|
|
17788
|
+
None,
|
|
17789
|
+
)
|
|
17790
|
+
|
|
17791
|
+
SocketConnect = Symbol(
|
|
17792
|
+
None,
|
|
17793
|
+
None,
|
|
17794
|
+
None,
|
|
17795
|
+
"SocketConnect",
|
|
17796
|
+
"A wrapper for connect, casting any errors to -1.\n\nr0: socket file descriptor\nr1: address\nr2: length of address\nreturn: 0 on success, -1 on an error",
|
|
17797
|
+
None,
|
|
17798
|
+
)
|
|
17799
|
+
|
|
17800
|
+
SocketRecv = Symbol(
|
|
17801
|
+
None,
|
|
17802
|
+
None,
|
|
17803
|
+
None,
|
|
17804
|
+
"SocketRecv",
|
|
17805
|
+
"A wrapper for recv, casting any errors to -1.\n\nr0: socket file descriptor\nr1: destination buffer\nr2: size of buffer\nr3: flags\nreturn: number of bytes read, or -1 on an error",
|
|
17806
|
+
None,
|
|
17807
|
+
)
|
|
17808
|
+
|
|
17809
|
+
SocketRecvFrom = Symbol(
|
|
17810
|
+
None,
|
|
17811
|
+
None,
|
|
17812
|
+
None,
|
|
17813
|
+
"SocketRecvFrom",
|
|
17814
|
+
"A wrapper for recvfrom, casting any errors to -1.\n\nr0: socket file descriptor\nr1: destination buffer\nr2: size of buffer\nr3: flags\nstack[0]: destination address; can be NULL\nstack[1]: length of destination address\nreturn: number of bytes read, or -1 on an error",
|
|
17815
|
+
None,
|
|
17816
|
+
)
|
|
17817
|
+
|
|
17818
|
+
SocketSend = Symbol(
|
|
17819
|
+
None,
|
|
17820
|
+
None,
|
|
17821
|
+
None,
|
|
17822
|
+
"SocketSend",
|
|
17823
|
+
"A wrapper for send, casting any errors to -1.\n\nr0: socket file descriptor\nr1: source buffer\nr2: size of buffer\nr3: flags\nreturn: number of bytes sent, or -1 on an error",
|
|
17824
|
+
None,
|
|
17825
|
+
)
|
|
17826
|
+
|
|
17827
|
+
SocketSendTo = Symbol(
|
|
17828
|
+
None,
|
|
17829
|
+
None,
|
|
17830
|
+
None,
|
|
17831
|
+
"SocketSendTo",
|
|
17832
|
+
"A wrapper for sendto, casting any errors to -1.\n\nr0: socket file descriptor\nr1: source buffer\nr2: size of buffer\nr3: flags\nstack[0]: target address\nstack[1]: length of target address\nreturn: number of bytes sent, or -1 on an error",
|
|
17833
|
+
None,
|
|
17834
|
+
)
|
|
17835
|
+
|
|
17836
|
+
SocketSetBlocking = Symbol(
|
|
17837
|
+
None,
|
|
17838
|
+
None,
|
|
17839
|
+
None,
|
|
17840
|
+
"SocketSetBlocking",
|
|
17841
|
+
"Sets a socket to be blocking or non-blocking.\n\nr0: socket file descriptor\nr1: blocking flag\nreturn: success",
|
|
17842
|
+
None,
|
|
17843
|
+
)
|
|
17844
|
+
|
|
17845
|
+
DoRand = Symbol(
|
|
17846
|
+
None,
|
|
17847
|
+
None,
|
|
17848
|
+
None,
|
|
17849
|
+
"DoRand",
|
|
17850
|
+
"Generates a pseudorandom integer provided a parameter.\n\nr0: ctx\nreturn: pseudorandom integer",
|
|
17851
|
+
None,
|
|
17852
|
+
)
|
|
17853
|
+
|
|
17854
|
+
rand = Symbol(
|
|
17855
|
+
None,
|
|
17856
|
+
None,
|
|
17857
|
+
None,
|
|
17858
|
+
"rand",
|
|
17859
|
+
"Generates a new pseudorandom integer from the current PRNG sequence number and updates it.\n\nreturn: psuedorandom integer",
|
|
17860
|
+
None,
|
|
17861
|
+
)
|
|
17862
|
+
|
|
17863
|
+
srand = Symbol(
|
|
17864
|
+
None,
|
|
17865
|
+
None,
|
|
17866
|
+
None,
|
|
17867
|
+
"srand",
|
|
17868
|
+
"Seeds a PRNG sequence number used by rand.\n\nr0: seed",
|
|
17869
|
+
None,
|
|
17870
|
+
)
|
|
17871
|
+
|
|
17872
|
+
RandRangeOverlay0 = Symbol(
|
|
17873
|
+
None,
|
|
17874
|
+
None,
|
|
17875
|
+
None,
|
|
17876
|
+
"RandRangeOverlay0",
|
|
17877
|
+
"Generates a new pseudorandom integer by performing (rand() % (y - x) + x).\n\nr0: x\nr1: y\nreturn: pseudorandom integer on the interval [x, y - 1]",
|
|
17878
|
+
None,
|
|
17879
|
+
)
|
|
17880
|
+
|
|
17881
|
+
ResolveAvailableNintendoWifi = Symbol(
|
|
17882
|
+
None,
|
|
17883
|
+
None,
|
|
17884
|
+
None,
|
|
17885
|
+
"ResolveAvailableNintendoWifi",
|
|
17886
|
+
"Seemingly resolves the IP of 'pokedungeonds.available.gs.nintendowifi.net', in which 'pokedungeonds' is provided as the first parameter.\n\nr0: string",
|
|
17887
|
+
None,
|
|
17888
|
+
)
|
|
17889
|
+
|
|
17890
|
+
PasswordEncryptString = Symbol(
|
|
17891
|
+
None,
|
|
17892
|
+
None,
|
|
17893
|
+
None,
|
|
17894
|
+
"PasswordEncryptString",
|
|
17895
|
+
"Performs XOR encryption/decryption on a string, the keystream derived from srand(0x79707367) and repeatedly calling randrange(0x0, 0xFF).\n\nSeemingly called mostly for the 'passenc' field in DWC messages.\n\nr0: src\nr1: dest",
|
|
17896
|
+
None,
|
|
17897
|
+
)
|
|
17898
|
+
|
|
17618
17899
|
|
|
17619
17900
|
class JpItcmOverlay0Data:
|
|
17620
17901
|
|
|
@@ -17630,7 +17911,7 @@ class JpItcmOverlay0Data:
|
|
|
17630
17911
|
|
|
17631
17912
|
class JpItcmOverlay0Section:
|
|
17632
17913
|
name = "overlay0"
|
|
17633
|
-
description = "
|
|
17914
|
+
description = "Contains supporting data and code related to the Top Menu, as well as core networking functions.\n\nThis is loaded together with overlay 1 while in the Top Menu. Since it's in overlay group 2 (together with overlay 10, which is another 'data' overlay), this overlay probably plays a similar role. It mentions several files from the BACK folder that are known backgrounds for the Top Menu."
|
|
17634
17915
|
loadaddress = None
|
|
17635
17916
|
length = None
|
|
17636
17917
|
functions = JpItcmOverlay0Functions
|