Graham
46d8af509c
Create bundler output directory if it doesn't exist
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
8685d2b2dc
Remove unused DeterministicJarOutputStream methods
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
10145fdb43
Add Sequence<JarEntry> extension property to JarInputStream
...
This improves the readability of code that iterates through all entries
in a jar.
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Scu11
6e877b52ce
Move Library#read methods to dedicated classes
...
Signed-off-by: Scu11 <scu11@openrs2.dev>
5 years ago
Scu11
26348b8a2e
Move Library#write methods to dedicated classes
...
Signed-off-by: Scu11 <scu11@openrs2.dev>
5 years ago
Graham
b40eedfb3b
Use block comment for multi-line comment in Deobfuscator
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
76f940e734
Remove unintentional static imports
...
Some of these method names only make sense when accompanied with the
class name. I think most of these were mistakes in the Java -> Kotlin
port.
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
3c051fe8c1
Rename private.key to game.key
...
This name is slightly more descriptive and consistent with loader.p12,
which also contains a private key.
I've also removed the public.key file. It isn't read by OpenRS2 and the
two files could get out of sync with each other, which would be
confusing.
It's easy to extract the public key with OpenSSL if necessary:
openssl pkey -in game.key -pubout -out public.key
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
21551b119c
Add kotlin-reflect dependency
...
It is required by Jackson.
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
25f8bac502
Install example config file at the real path in the distribution
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
5e987f1f61
Remove memory allocation delay during client startup
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
c488a155c4
Replace operator and game names with values from the config file
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
ef5db18ea1
Replace runescape.com with domain from the config file
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
fe3a8c1a37
Replace cachesubdir with the internal game name
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
ed052c783b
Use cache path and signer name from the config file
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
3aaea52eac
Remove trailing whitespace from log messages
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
05a03d5bdc
Inject transformers in the bundler and deobfuscator
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
d07714a37d
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
0c76c610bd
Convert Guice modules to objects
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
d119cc07b5
Add config file parser
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
d32ea82032
Inject ObjectMapper in NameMapProcessor
...
We have to create the Injector in the constructor as it's instantiated
by javac, not our own code.
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
9441527c61
Add yaml module
...
It uses multibindings to allow additional Jackson modules to be
registered across different Guice modules while using a single
ObjectMapper for the whole application.
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
2c4261e751
Exclude Guice annotations from auto-import
...
This ensures JSR-330 annotations are used instead.
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
c394b404b9
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
5256f00ee0
Make libraryClasses return Sequence instead of List
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
49a90c1cf5
Rename getNode() to getClassNode()
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
ff96cf70a2
Rename dokka output directory to kdoc
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
e50616a565
Document MonitorTransformer
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
9a1c0e9caf
Add DeterministicJarOutputStreamTest
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
958fbc03ba
Add IterableUtilsTest
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
972d3cebc1
Add ForestDisjointSetTest
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
a9aae4ea37
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
1c539f22fe
Add DisjointSet and ForestDisjointSet documentation
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
de467837f0
Add externalDocumentationLinks
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
e4724871d6
Document ExceptionTracingTransformer
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
4cfb577e48
Replace StandardCharsets with Charsets
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
609576be63
Add Dokka task to the root project
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
0c709bf0e6
Remove redundant constructor keyword
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
14b82dd9d8
Switch to -SNAPSHOT version of Fernflower
...
Local variable name tracking with the @Pc annotation relies on changes
not yet included in a release. I'm not intending to do another
Fernflower release yet, as I've still got more changes to make, but I
would like the @Pc tracking to work.
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
7ce21b0cde
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
31e9ac9170
Add InvokeSpecialTransformer documentation
...
I've already forgotten all the details of how this works once!
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
54aa9b738c
Add testFlush() to SkipOutputStreamTest
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
dd560c1801
Restrict code coverage to the dev.openrs2 package
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
1d56887e03
Disable per-module working directory for coverage compatibility
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
ab138f5572
Revert "Run tests with Gradle instead of IDEA's test runner"
...
This reverts commit 7415ae6ec9
.
The problems that caused me to write this commit in the first place have
been fixed. Using IDEA's test runner directly is nicer - e.g. for code
coverage integration.
5 years ago
Graham
34c7e049b1
Remove duplicate junit-jupiter-api dependency with different version
...
This fixes exceptions when we try to run JUnit tests directly in IDEA.
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
fced5610a5
Add SkipOutputStreamTest
5 years ago
Graham
6e0844fa73
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
77aa313b64
Only use StackFrameClassWriter where required
...
Java 11's Pack200 implementation complains if stack map frames are present, and
passes the classes through unmodified. I'm not sure why.
Stack map frames are only required in Java 7, so for 6 and below a reasonable
workaround is to not emit them.
A nice side effect of this change is that the jar files created by the bundler
are be smaller. The pack200 files are too, and would be even if the classes
were not passed through unmodified.
5 years ago
Graham
055efd60e7
Rename maxVersion() to max()
5 years ago