Graham
f088664ac9
Refactor MouseRecorder
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
bce63109ec
Fix name of readEncryptedBytes
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
df3370c0ef
Rename skullIcon to pkIcon
...
This fits with the name of the sprite (headicons_pk).
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
10112f5112
Partially refactor LocType
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
0e81bc211b
Refactor StructType
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
0e7e8f2d7d
Make the individual components of an XteaKey public
...
This is useful in the archiving service code, as it can extract them for
insertion into the database without the overhead of creating and then
throwing away an IntArray.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
2c7abdc7ff
Use bufferedReader() extension method
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
efc7ba9d2b
Add underflow/overflow tests
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
06cad72eaa
Add Js5Archive object
...
This will eventually hold the names of each JS5 archive in 550, as and
when I confirm the names from the NXT beta client still match up with
the functionality of each archive in 550.
Currently it only holds then name of index 255.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
977dd0bd93
Check that we read exactly uncompressedLen bytes
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
cdae86aad6
Truncate existing output files in the compression commands
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
107c432e65
Rename NONE to UNCOMPRESSED
...
This is the name used by Jagex.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
8d35b5010a
Add functions for quickly checking if a XTEA key is valid
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
88175e798f
Remove debug println from Js5IndexTest
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
fabe7983df
Update unpackclass.yaml
...
I missed this change.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
cf34a04b80
Move skyboxTextures to a Defaults class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
0bbf6b9507
Rename Js5ResourceProviderImpl to Js5CachedResourceProvider
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
44adebd9be
Refactor the sorted WorldList
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
3ffd7caaa1
Refactor the WorldList class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
24f094b387
Refactor decodeDefaults
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
2a6e50d44d
Refactor the WordPack class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
946fa2c3db
Rename IntegerUtils to IntUtils
...
This ensures it appears next to IntHashTable and IntNode in the class
list.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
9907a7d2c3
Renmae clearSoft() to removeSoft()
...
This is closer to the official name.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
cc17a25f01
Refactor LruHashTable
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
41ad780a65
Rename LruHashTable to SoftLruHashTable
...
This is to make way for the real LruHashTable class.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
7d626bcabb
Rename sweep() to clean()
...
This matches the Jagex name.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
0c020c7f36
Rename Js5Index::read to decode
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
38859a2c18
Refactor NpcType, ObjectType and associated code
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
ae70bbb804
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
22ec916000
Refactor Js5 instance names
...
In the future I will give these more descriptive names.
I'm not yet sure if the client class is the most appropriate location,
but it fits with the current heuristic of placing static members in the
class in which they are initialised if they are initialised in an
instance method.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
4354b17ddf
Update gradle-versions-plugin
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
8b33989768
Update clikt
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
df6c9a610c
Create singleton sets in LiveVariableAnalyzer where possible
...
This will be slightly more efficient than the existing approach.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
15d359429e
Add alloc parameter to Store.open()
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
d2174bb77c
Improve checksum/digest terminology in the README
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
1cce3b33d0
Replace non-breaking spaces with normal spaces in the README
...
Looks better in IDEA's editor.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
eb7f71a7a4
Update Dokka
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
a2d41d924f
Change cache's crypto dependency to an API dependency
...
The XteaKey class is used in method signatures.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
89accc8b26
Rename root to ROOT
...
Path is immutable.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
0afc7a563d
Add Store.open() method
...
It automatically determines whether to use a DiskStore or FlatFileStore.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
5a20b75f4f
Use Preconditions.checkPositionIndexes() in ByteBuf.crc32()
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
d2ee9d3b8b
Check that all decompression algorithms throw IOException on failure
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
0d384fa8f2
Throw IOException for all JS5 decompression errors
...
Should be nicer than the mixture of exception types we used before.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
78f8069177
Add method for stripping the version trailer from a ByteBuf
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
e764403cb2
Add tests for corrupt containers
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
b51b2f5e77
Cache values() array in enums
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
a4234d066d
Add CRC-32 extension method to the ByteBuf class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
7887a4dff1
Rename Resource::crc to checksum
...
This is consistent with us using checksum/digest in the Js5Index naming.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
f9c14aad14
Remove redundant rollback after a successful commit
...
No functional change, but I suspect this might remove a database round
trip.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
3ee8005ab7
Update clikt
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago