Graham
a8a48b3574
Move repositories to new dependencyResolutionManagement block
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
f9996ef0b0
Update glossary
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
77e227c93d
Store game, build and timestamp in the master index table
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
ab006bbf44
Reintroduce Clitk extensions module
...
A future commit will introduce CLI options that need to be interpreted
as an Instant.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
f3ea8e71fe
Rename version to build
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
689c315bf3
Track current build number automatically
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
fdd0f118f2
Add logging to Js5ChannelHandler
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
d67a5e690f
Add request() method
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
80a8889106
Call read() if there is any existing in-flight request
...
This fixes the downloader getting stuck if there's a particularly large
file, such that we've read all the current inbound data but haven't sent
a new request yet as we still have 200 in-flight.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
d421d5150c
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
4743f38dbe
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
f2f3da3281
Simplify testCrc32 slightly
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
c70cfcfb30
Add ByteBuf.whirlpool() extension method
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
0981303391
Replace if/else sequence with when
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
6f815b6334
Move return outside try block
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
5ee2eccb83
Remove redundant init block
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
918f8ab379
Remove redundant visibility modifier
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
d0dbf4c58e
Make set subject of when
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
ab3300a8c7
Return old NamedEntry after removal from NamedEntryCollection
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
ed0b1db81b
Flesh out the JS5 protocol introduction
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
f74d8f8b45
Update Gradle
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
602328c37d
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
af0a1e7457
Fix DiskStoreTest and FlatFileStoreTest on Windows
...
As we're comparing a real directory tree with Jimfs, we need to ensure
the platform matches - otherwise it gets confused, and thinks \ is part
of a UNIX file name.
4 years ago
Graham
43cf436c22
Set Java compiler encoding to UTF-8
...
This fixes building the nonfree repository on Windows.
4 years ago
Graham
cec6fce341
Refactor various bits and pieces
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
4e48ea0f41
Refactor the SoundBank class
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
5ea7f1ab6b
Refactor the Vorbis implementation
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
186c5930a5
Add Js5Archive and Js5ConfigGroup constants for 550
...
Most of these names come directly from the NXT/TFU clients, though a few
are made up as we don't know the official name.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
e384d634cc
Reduce allocations if a singleton set is already mutable
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
df68f6d801
Add Js5ConfigGroup object
...
Empty so far, mostly serves as a reminder for me to populate it along
with the Js5Archive object.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
e18d751125
Add combined command for running both deobfuscators and the decompiler
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
70b35216c9
Flesh out JS5 protocol documentation
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
07603d3cfa
Avoid copying the byte array in crc32() if possible
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
435a8b4eff
Validate checksums in the JS5 client
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
4b1d25393c
Add JS5 protocol documentation
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
d837e72aee
Enforce consistent version of Kotlin's stdlib across the whole project
...
I think something pulls in 1.3's standard library, which confuses IDEA.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
0f939935cd
Skip flush/read calls if no writes are made
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
e0a9bc3ca6
Rename suspend to awaitSuspend
...
Ideally I'd like to just call this await, but it conflicts with an
existing method.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
29ac56fe1e
Replace flushRequests() with channelReadComplete()
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
6023569ce0
Add code for packing and unpacking groups
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
f87d89fe7c
Add initial command for downloading the cache from a JS5 server
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
72e9107900
Move original client back to nonfree/lib
...
I think it's actually fine to stick the jars in the nonfree/lib folder.
When we package up the entire OpenRS2 distribution, the fat jar is
placed in the lib folder, so using nonfree/lib is consistent with that.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
36e4fa474b
Fix comment
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
95108126f1
Skip addMasterIndex/addIndex if the index already exists
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
fff63285fe
Re-combine CacheImporter and ContainerImporter
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
4f16713f01
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
4e90bd76b5
Remove the cache and cache_index tables
...
These effectively duplicate the master index tables, but in a less
flexible manner - as they don't support importing a master index where
some of the indexes are missing.
This commit also combines MasterIndexImporter with CacheImporter, to
make it easier to re-use code.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
9e983135e2
Make InitJs5RemoteConnection a data class
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
fa20f1e118
Fix Js5MasterIndex::create
...
It didn't uncompress the index files before parsing them.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
3cb7ee13f9
Rename deob to deob-bytecode
...
This is in preparation for adding a new deob module which invokes the
bytecode deobfuscator, decompiler and AST deobfuscator in turn.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago