Graham
ce97775663
Reduce use of ByteBuf{Input,Output}Stream in Js5Compression
...
Probably slightly more efficient.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
8887b0a1e9
Refactor the crc32 method
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
3f59e1764c
Store individual XteaKey components separately
...
This allows us to make them private (rather than internal) and the type
as a whole is immutable.
It does mean we need to convert the key to an IntArray every time we use
it now. However, I hope that the JVM will be smart enough to inline the
toIntArray() method and also smart enough to realise it doesn't escape,
allowing it to allocate it on the stack rather than the heap.
This commit also adds methods for converting XteaKeys to hex, and
converting from hex/integer arrays to an XteaKey object.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
58335ca6d0
Add JS5 compression/encryption implementation
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
f81f4a81c7
Set LzmaCommand's default level to -6
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
921ef3a08f
Refactor some of the client loading code
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
10a99fc9fb
Refactor most of the preferences code
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
cceaf59d3c
Refactor the Base37 encoding/decoding methods
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
4f18ca0947
Refactor JS5 connection code
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
1bb5cb4e06
Refactor Js5ResourceProvider and associated code
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
07e5a6f488
Refactor the Js5MasterIndex class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
5144604f2d
Rename getReadyPercentage to getPercentageComplete
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
4b1fdcf716
Refactor JS5 request queues
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
6aac893a1f
Rename Js5Index to Js5 in unpackclass
...
I suspect Jagex have a really clever optimizer capable of inlining the
Js5Index class (or perhaps they did it manually?)
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
026ffb21c4
Refactor the client's Js5 class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
693ed579e8
Refactor more of the GameShell class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
4616401987
Refactor Timer classes and associated code in GameShell
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
4e4b0aad40
Refactor the HuffmanCodec class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
e689d65f6c
Refactor the SecondaryHashTable class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
1e4e48e413
Rename iteratorKey to iteratorBucket
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
946ab98a82
Refactor the HashTableIterator class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
9ffc7701e2
Refactor the secondary insertAfter method
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
a8c13614ef
Refactor the ReferenceNodeFactory class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
2dfd3ed889
Refactor the LruHashTable class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
7590fa8d7c
Refactor the ReferenceNode class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
aeb03865a1
Refactor the SecondaryLinkedList class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
9b81f5c6c0
Refactor the SecondaryNode class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
1ae491d411
Refactor the HashTable class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
ceb3e0d702
Refactor the client's LinkedList class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
6c66a4cee5
Refactor the client's ArrayUtils class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
c0703c9065
Refactor the Cache class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
5af09c9c4b
Refactor the BufferedFile class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
77aa69fe97
Refactor the BufferedSocket class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
a057750792
Refactor the Broken{Input,Output}Stream classes
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
73ebb64c73
Refactor the IntNode and StringNode classes
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
1cc0fcc8b7
Refactor the client's TracingException class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
c819e85574
Refactor the client's bzip2 decompressor
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
01a3bc020d
Refactor the client's GzipDecompressor class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
31de41283f
Refactor the Js5Compression class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
646af10bb1
Refactor StringUtils and Cp1252Charset
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
392c43562c
Refactor the client's Js5Index class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
a18072f542
Refactor hostname/port selection code
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
9b63ae48e1
Refactor the sleep method
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
0350f7fe02
Refactor most of the GameShell class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
9a748035c7
Refactor the BrowserControl class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
d2bf5864be
Refactor the client's main method
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
d0f29f7b26
Refactor the localisation code
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
3f3c27f354
Refactor the Packet class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
960da043d6
Refactor the IsaacRandom class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
57d6ec2e63
Add initial refactor of the client's Buffer class
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago