Graham
804ae70def
Format refreshViews() in CacheImporter
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
fe69594180
Add command for extracting caches found with Edward's cache finder
...
Useful for running directly on my server, which is headless Linux. (The
current extract tool is a GUI Windows app.)
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
03e6c3dd81
Annotate crypto methods with @Jvm{Overloads,Static}
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
26651618ef
Optimise uncompression of encrypted groups with invalid keys
...
Creating the InputStream first allows us to immediately fail if a key is
invalid, without having the chance of allocating a huge ByteBuf based on
an incorrect length.
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
caaddad0ed
Flush underlying Store when a Cache is flushed
...
This ensures the buffered data in BufferedFileChannels is written to
disk even if close() is never called.
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
b320348ec7
Fix bug where music data file was closed on flush
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
bcc2fdf48e
Add @JvmStatic and @JvmOverloads to more cache methods
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
bf12f41faf
Update run configurations
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
6f7350afa3
Fix JagArchive tests if libbzip2 is available
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
078b1f6197
Fix version trailers in RuneLiteStore
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
52ca09e4d0
Exclude JNR from minimization
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
b7be7950c6
Update GeneratedByteBufExtensions
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
7859b929ad
Fix buffer-generator mainClass name
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
4e19879ee0
Fix use of deprecated method in ByteBufExtensionGenerator
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
712d874848
Fix Jackson version
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
a885695fdf
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
3e60a82ca1
Add command for unpacking RuneLite flatcaches
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
ba75306169
Annotate cache methods with default parameters with @JvmOverloads
...
This allows them to be used from Java.
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
aa2784a9e6
Add class for converting RuneLite flatcaches to other formats
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
8c415023af
Update Gradle
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
f7abf23dee
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
c21895f052
Add JNR-based bzip2 implementation compatible with Jagex's
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
a6dbb29ea0
Fix dependency order
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
c9f397759e
Use advisory locks to prevent concurrent view refreshes
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
35f54fd753
Skip corrupt archives when importing legacy caches
...
Signed-off-by: Graham <gpe@openrs2.org>
2 years ago
Graham
29716379c3
Update Gradle
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
1d76d90bcb
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
5c77ee4bd2
Format CacheExporter
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
1a78ef3c7d
Throw an exception if header is truncated
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
73eb30dbf9
Add game, environment, language, build and timestamp to file names
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
b99ae4bb09
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
fb0d7ef923
Add link to the RuneScape Archive
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
799277b386
Simplify JagexGzipOutputStream
...
Deflater already tracks the size of the input.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
0d097f7d2c
Update Gradle
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
57bdd6c0f4
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
ec4eb6464f
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
26d5d5fd6e
Use JagexGzipOutputStream to compress gzipped JS5 containers
...
The output is bit-for-bit identical to Jagex's implementation.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
64b1e2e5b9
Add gzip-jagex command
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
71e7c6f8ea
Remove createLaxInputStream() method
...
It's rather pointless - the constructor can be called directly.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
6c508922fc
Add JagexGzipOutputStream
...
Equivalent to the built-in GZIPOutputStream, except it produces output
that is bit-for-bit identical to Jagex's implementation.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
a761a26cc8
Manage plugin versions in libs.versions.toml
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
0b2f13422b
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
e195f5f37f
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
08080489b6
Replace BIPUSH 1 with ICONST_1
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
cf983794fb
Fix InvalidKeyTransformer bug and comment
...
There were two problems:
- The current intention is for the uncompressed array to be 1 byte long,
not 6 bytes - as map groups only have a single file, we don't need the
group header.
- The comment was out of the sync with the intended code (replace
uncompressed with a single element byte array containing zero).
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
7cde3a4552
Add link to the RuneScape Preservation Unit wiki page
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
64713fb862
Add --decode-js5response flag to import-master-index
...
It removes the archive/group prefix and the 0xFF markers.
Unfortunately using Js5ResponseDecoder here is tricky - perhaps it
could've been done with an EmbeddedChannel.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
dbbc232e81
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
71f775f282
Add JSON version of the /caches page
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
759d4bf1f1
Add XteaPluginTest run configuration
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago