pmdsky-debug-py 10.2.25__py3-none-any.whl → 10.2.27__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/jp.py CHANGED
@@ -10251,6 +10251,51 @@ class JpArm9Data:
10251
10251
  "",
10252
10252
  )
10253
10253
 
10254
+ ST_I2N_I_BIN_FILE_NAME = Symbol(
10255
+ None,
10256
+ None,
10257
+ None,
10258
+ "ST_I2N_I_BIN_FILE_NAME",
10259
+ "Name of the file st_i2n_i.bin",
10260
+ "char[12]",
10261
+ )
10262
+
10263
+ ST_I2N_E_BIN_FILE_NAME = Symbol(
10264
+ None,
10265
+ None,
10266
+ None,
10267
+ "ST_I2N_E_BIN_FILE_NAME",
10268
+ "Name of the file st_i2n_e.bin",
10269
+ "char[12]",
10270
+ )
10271
+
10272
+ ST_I2N_S_BIN_FILE_NAME = Symbol(
10273
+ None,
10274
+ None,
10275
+ None,
10276
+ "ST_I2N_S_BIN_FILE_NAME",
10277
+ "Name of the file st_i2n_s.bin",
10278
+ "char[12]",
10279
+ )
10280
+
10281
+ ST_I2N_G_BIN_FILE_NAME = Symbol(
10282
+ None,
10283
+ None,
10284
+ None,
10285
+ "ST_I2N_G_BIN_FILE_NAME",
10286
+ "Name of the file st_i2n_g.bin",
10287
+ "char[12]",
10288
+ )
10289
+
10290
+ ST_I2N_F_BIN_FILE_NAME = Symbol(
10291
+ None,
10292
+ None,
10293
+ None,
10294
+ "ST_I2N_F_BIN_FILE_NAME",
10295
+ "Name of the file st_i2n_f.bin",
10296
+ "char[12]",
10297
+ )
10298
+
10254
10299
  BABY_EXCLUSIVE_ITEM_PAIRS = Symbol(
10255
10300
  [0x982EC],
10256
10301
  [0x20982EC],
@@ -10260,6 +10305,33 @@ class JpArm9Data:
10260
10305
  "struct baby_exclusive_item_pair[16]",
10261
10306
  )
10262
10307
 
10308
+ ITEM_P_BIN_FILE_PATH = Symbol(
10309
+ [0x9832C],
10310
+ [0x209832C],
10311
+ 0x18,
10312
+ "ITEM_P_BIN_FILE_PATH",
10313
+ "File path of the file item_p.bin",
10314
+ "char[24]",
10315
+ )
10316
+
10317
+ ITEM_S_P_BIN_FILE_PATH = Symbol(
10318
+ [0x98348],
10319
+ [0x2098348],
10320
+ 0x1A,
10321
+ "ITEM_S_P_BIN_FILE_PATH",
10322
+ "File path of the file item_s_p.bin",
10323
+ "char[26]",
10324
+ )
10325
+
10326
+ ITEM_ST_I2N_BIN_FORMAT = Symbol(
10327
+ [0x98364],
10328
+ [0x2098364],
10329
+ 0x1A,
10330
+ "ITEM_ST_I2N_BIN_FORMAT",
10331
+ "File path for language files. In EU, this is a format string where each of the language files can be inserted in. In NA/JP, this is just the file path of the file st_i2n_j.bin",
10332
+ "",
10333
+ )
10334
+
10263
10335
  ITEM_NAME_FORMAT_YELLOW = Symbol(
10264
10336
  [0x98380],
10265
10337
  [0x2098380],
@@ -12035,6 +12107,15 @@ class JpArm9Data:
12035
12107
  "void*[3]",
12036
12108
  )
12037
12109
 
12110
+ ITEM_LANG_FILE_ARRAY = Symbol(
12111
+ None,
12112
+ None,
12113
+ None,
12114
+ "ITEM_LANG_FILE_ARRAY",
12115
+ "An array containing the names of each language file. Only exists in EU.",
12116
+ "char*[5]",
12117
+ )
12118
+
12038
12119
  DUNGEON_MOVE_TABLES = Symbol(
12039
12120
  [0xB0B1C],
12040
12121
  [0x20B0B1C],
@@ -13694,7 +13775,23 @@ class JpLibsFunctions:
13694
13775
  None,
13695
13776
  )
13696
13777
 
13697
- Crypto_RC4Init = Symbol([0x9648], [0x2075A08], None, "Crypto_RC4Init", "", None)
13778
+ Crypto_RC4Init = Symbol(
13779
+ [0x9648],
13780
+ [0x2075A08],
13781
+ None,
13782
+ "Crypto_RC4Init",
13783
+ "Initializes an RC4 context.\n\nr0: context\nr1: key\nr2: key length (clamped down to a maximum of 16)",
13784
+ None,
13785
+ )
13786
+
13787
+ Crypto_RC4Encrypt = Symbol(
13788
+ [0x96D8],
13789
+ [0x2075A98],
13790
+ None,
13791
+ "Crypto_RC4Encrypt",
13792
+ "Encrypts/decrypts a buffer using an RC4 context.\n\nr0: context\nr1: src\nr2: size\nr3: dest",
13793
+ None,
13794
+ )
13698
13795
 
13699
13796
  Mtx_LookAt = Symbol([0x9750], [0x2075B10], None, "Mtx_LookAt", "", None)
13700
13797
 
@@ -14364,6 +14461,33 @@ class JpLibsFunctions:
14364
14461
  None,
14365
14462
  )
14366
14463
 
14464
+ MD5_Init = Symbol(
14465
+ [0x14024],
14466
+ [0x20803E4],
14467
+ None,
14468
+ "MD5_Init",
14469
+ "Initializes an MD5 context.\n\nr0: context",
14470
+ None,
14471
+ )
14472
+
14473
+ MD5_Update = Symbol(
14474
+ [0x14064],
14475
+ [0x2080424],
14476
+ None,
14477
+ "MD5_Update",
14478
+ "Updates an MD5 context using a buffer's bytes.\n\nr0: context\nr1: buffer\nr2: size of buffer",
14479
+ None,
14480
+ )
14481
+
14482
+ MD5_Digest = Symbol(
14483
+ [0x1412C],
14484
+ [0x20804EC],
14485
+ None,
14486
+ "MD5_Digest",
14487
+ "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",
14488
+ None,
14489
+ )
14490
+
14367
14491
  PM_ForceToPowerOff = Symbol(
14368
14492
  [0x15F34],
14369
14493
  [0x20822F4],
@@ -17851,6 +17975,249 @@ class JpOverlay0Functions:
17851
17975
  None,
17852
17976
  )
17853
17977
 
17978
+ close = Symbol(
17979
+ [0x11E60],
17980
+ [0x22D0080],
17981
+ None,
17982
+ "close",
17983
+ "Closes a file descriptor.\n\nr0: file descriptor\nreturn: 0 on success, or a negative value representing an error",
17984
+ None,
17985
+ )
17986
+
17987
+ socket = Symbol(
17988
+ [0x12738],
17989
+ [0x22D0958],
17990
+ None,
17991
+ "socket",
17992
+ "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",
17993
+ None,
17994
+ )
17995
+
17996
+ bind = Symbol(
17997
+ [0x12764],
17998
+ [0x22D0984],
17999
+ None,
18000
+ "bind",
18001
+ "Binds a socket to an address.\n\nr0: socket file descriptor\nr1: address\nreturn: 0 on success, or a negative value representing an error",
18002
+ None,
18003
+ )
18004
+
18005
+ connect = Symbol(
18006
+ [0x12790],
18007
+ [0x22D09B0],
18008
+ None,
18009
+ "connect",
18010
+ "Connects a socket to an address.\n\nr0: socket file descriptor\nr1: address\nreturn: 0 on success, or a negative value representing an error",
18011
+ None,
18012
+ )
18013
+
18014
+ recv = Symbol(
18015
+ [0x127EC],
18016
+ [0x22D0A0C],
18017
+ None,
18018
+ "recv",
18019
+ "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",
18020
+ None,
18021
+ )
18022
+
18023
+ recvfrom = Symbol(
18024
+ [0x12810],
18025
+ [0x22D0A30],
18026
+ None,
18027
+ "recvfrom",
18028
+ "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",
18029
+ None,
18030
+ )
18031
+
18032
+ send = Symbol(
18033
+ [0x128A0],
18034
+ [0x22D0AC0],
18035
+ None,
18036
+ "send",
18037
+ "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",
18038
+ None,
18039
+ )
18040
+
18041
+ sendto = Symbol(
18042
+ [0x128C4],
18043
+ [0x22D0AE4],
18044
+ None,
18045
+ "sendto",
18046
+ "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",
18047
+ None,
18048
+ )
18049
+
18050
+ CloseVeneer = Symbol(
18051
+ [0x12954],
18052
+ [0x22D0B74],
18053
+ None,
18054
+ "CloseVeneer",
18055
+ "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",
18056
+ None,
18057
+ )
18058
+
18059
+ fcntl = Symbol(
18060
+ [0x12B58],
18061
+ [0x22D0D78],
18062
+ None,
18063
+ "fcntl",
18064
+ "Performs an operation on a file descriptor.\n\nr0: file descriptor\nr1: operation\nr2: operation-specific argument\nreturn: operation-specific value",
18065
+ None,
18066
+ )
18067
+
18068
+ InitWfc = Symbol(
18069
+ [0x1AD20],
18070
+ [0x22D8F40],
18071
+ None,
18072
+ "InitWfc",
18073
+ "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?",
18074
+ None,
18075
+ )
18076
+
18077
+ SocketCastError = Symbol(
18078
+ [0x38514],
18079
+ [0x22F6734],
18080
+ None,
18081
+ "SocketCastError",
18082
+ "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",
18083
+ None,
18084
+ )
18085
+
18086
+ SocketCreate = Symbol(
18087
+ [0x3852C],
18088
+ [0x22F674C],
18089
+ None,
18090
+ "SocketCreate",
18091
+ "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",
18092
+ None,
18093
+ )
18094
+
18095
+ SocketClose = Symbol(
18096
+ [0x38540],
18097
+ [0x22F6760],
18098
+ None,
18099
+ "SocketClose",
18100
+ "A wrapper for close, casting any errors to -1.\n\nr0: file descriptor\nreturn: 0 on success, -1 on an error",
18101
+ None,
18102
+ )
18103
+
18104
+ SocketBind = Symbol(
18105
+ [0x38568],
18106
+ [0x22F6788],
18107
+ None,
18108
+ "SocketBind",
18109
+ "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",
18110
+ None,
18111
+ )
18112
+
18113
+ SocketConnect = Symbol(
18114
+ [0x385C8],
18115
+ [0x22F67E8],
18116
+ None,
18117
+ "SocketConnect",
18118
+ "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",
18119
+ None,
18120
+ )
18121
+
18122
+ SocketRecv = Symbol(
18123
+ [0x38614],
18124
+ [0x22F6834],
18125
+ None,
18126
+ "SocketRecv",
18127
+ "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",
18128
+ None,
18129
+ )
18130
+
18131
+ SocketRecvFrom = Symbol(
18132
+ [0x38628],
18133
+ [0x22F6848],
18134
+ None,
18135
+ "SocketRecvFrom",
18136
+ "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",
18137
+ None,
18138
+ )
18139
+
18140
+ SocketSend = Symbol(
18141
+ [0x38658],
18142
+ [0x22F6878],
18143
+ None,
18144
+ "SocketSend",
18145
+ "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",
18146
+ None,
18147
+ )
18148
+
18149
+ SocketSendTo = Symbol(
18150
+ [0x3866C],
18151
+ [0x22F688C],
18152
+ None,
18153
+ "SocketSendTo",
18154
+ "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",
18155
+ None,
18156
+ )
18157
+
18158
+ SocketSetBlocking = Symbol(
18159
+ [0x38828],
18160
+ [0x22F6A48],
18161
+ None,
18162
+ "SocketSetBlocking",
18163
+ "Sets a socket to be blocking or non-blocking.\n\nr0: socket file descriptor\nr1: blocking flag\nreturn: success",
18164
+ None,
18165
+ )
18166
+
18167
+ DoRand = Symbol(
18168
+ [0x38B84],
18169
+ [0x22F6DA4],
18170
+ None,
18171
+ "DoRand",
18172
+ "Generates a pseudorandom integer provided a parameter.\n\nr0: ctx\nreturn: pseudorandom integer",
18173
+ None,
18174
+ )
18175
+
18176
+ rand = Symbol(
18177
+ [0x38BD0],
18178
+ [0x22F6DF0],
18179
+ None,
18180
+ "rand",
18181
+ "Generates a new pseudorandom integer from the current PRNG sequence number and updates it.\n\nreturn: psuedorandom integer",
18182
+ None,
18183
+ )
18184
+
18185
+ srand = Symbol(
18186
+ [0x38BF0],
18187
+ [0x22F6E10],
18188
+ None,
18189
+ "srand",
18190
+ "Seeds a PRNG sequence number used by rand.\n\nr0: seed",
18191
+ None,
18192
+ )
18193
+
18194
+ RandRangeOverlay0 = Symbol(
18195
+ [0x38C0C],
18196
+ [0x22F6E2C],
18197
+ None,
18198
+ "RandRangeOverlay0",
18199
+ "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]",
18200
+ None,
18201
+ )
18202
+
18203
+ ResolveAvailableNintendoWifi = Symbol(
18204
+ [0x39184],
18205
+ [0x22F73A4],
18206
+ None,
18207
+ "ResolveAvailableNintendoWifi",
18208
+ "Seemingly resolves the IP of 'pokedungeonds.available.gs.nintendowifi.net', in which 'pokedungeonds' is provided as the first parameter.\n\nr0: string",
18209
+ None,
18210
+ )
18211
+
18212
+ PasswordEncryptString = Symbol(
18213
+ [0x4F26C],
18214
+ [0x230D48C],
18215
+ None,
18216
+ "PasswordEncryptString",
18217
+ "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",
18218
+ None,
18219
+ )
18220
+
17854
18221
 
17855
18222
  class JpOverlay0Data:
17856
18223
 
@@ -17866,7 +18233,7 @@ class JpOverlay0Data:
17866
18233
 
17867
18234
  class JpOverlay0Section:
17868
18235
  name = "overlay0"
17869
- description = "Likely contains supporting data and code related to the top menu.\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."
18236
+ 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
18237
  loadaddress = 0x22BE220
17871
18238
  length = 0x609A0
17872
18239
  functions = JpOverlay0Functions