Graham
651b2f8b5f
Update Guice
...
Signed-off-by: Graham <gpe@openrs2.org>
9 months ago
Graham
59f48e3859
Remove @JvmSuppressWildcards on multibindings
...
Guice now supports multibindings with wildcards, so the annotation is
now redundant.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
f143eef142
Move Kotlin files from src/{main,test}/java to src/{main,test}/kotlin
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
ce5b76ef0f
Rename dev.openrs2 package to org.openrs2
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
232ba32bbd
Enable explicit API mode
...
This already caught some cases of public members that should have been
private and one case where the inferred type was too specific.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
a87a289c49
Add duplicate class name support to the AST deobfuscator
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
46c0c29559
Set AstDeobfuscator's language level to 11
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
da193ebf52
Use platform class loader to resolve JDK types in the AstDeobfuscator
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
3c9edb0291
Use dependency injection in the AST deobfuscator
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
ccf7056a93
Use private companion objects where possible
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Desetude
c99ebcb355
Add logging to the AST deobfuscator
...
Signed-off-by: Desetude <harry@desetude.com>
4 years ago
Graham
a52d58e8b5
Use Clikt to implement the command-line interface
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
462ae7cb9c
Improve PrettyPrinterConfiguration
...
Both of these settings are closer to IDEA's code style.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
b9c707782c
Place @Pc annotations on the same line as variable declarations
...
This is much more readable than placing them on a separate line.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
caed5cebce
Remove gl-dri from AstDeobfuscator
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
2e1c6c22ff
Rename GlConstantTransformer to GlTransformer
...
It transforms more than just constants now.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Major
424a2d7a31
Fix compilation errors
...
Signed-off-by: Major <major@emulate.rs>
4 years ago
Graham
7db0c971ee
Use OpenGL registry to replace magic numbers with constants
4 years ago
Graham
597aa2018e
Add support for whole program AST transforms
4 years ago
Graham
64abe46971
Replace forEach calls with for loops
...
These are artifacts of the Java port.
4 years ago
Graham
ab75a2f0c9
Add IdentityTransformer
4 years ago
Desetude
d8c3f4e31c
Flip > and >= in for loop conditions to < and <= respectively
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
7d1dc59d6a
Convert pre-increments to post-increments where possible
4 years ago
Graham
e9a9a8f962
Format with ktlint
4 years ago
Graham
4df5754dac
Include generics in Function cast
...
The Kotlin compiler was happy with the old code, but IDEA wasn't.
Including the generics explicitly in the cast makes both happy.
4 years ago
Graham
77e8b0cdc0
Use top-level Kotlin main() functions
4 years ago
Graham
9b81c813dd
Convert AstDeobfuscator to Kotlin
4 years ago