Graham
e8ecd5016d
Set version to 0.1.0-SNAPSHOT
...
The first release won't be stable. Semantic Versioning suggest starting
unstable version numers at 0.1.0.
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
7e422447ef
Convert hasCode() to a property
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
9de55399f5
Convert createLong to an extension method on Long
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
cf3474c016
Convert createIntConstant to an extension method on Int
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
2471418d4a
Add is prefix to boolean extension properties
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
47d1bc0bd2
Convert stackMetadata to an extension property
...
It feels much more like a property than a function.
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
b6f7576864
Add DeobfuscatorProcessorModule
...
Our convention is one Guice module per subproject, where necessary.
Although this currently only includes YamlModule, it will include a
future DeobfuscatorMapModule.
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
971437e142
Add skeleton Js5LibraryReader
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
06212b8511
Add shorthand Library read/write methods
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
ae7c19beac
Convert most Library{Reader,Writer} implementations to objects
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
17bc1e287b
Move common jar reading logic to a separate class
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
2f3cdca12d
Reduce use of temporary files
...
The Resource::compress method already holds entire files in memory at
once, as does the client-side loader. We might as well do the same on
the server-side.
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
0206bbd4b2
Set DeterministicJarOutputStream's default compression level to 9
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
451a1d9c5e
Use a single Resource::compressLibrary method for all writers
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
daefa7f4ea
Remove streams from LibraryReader and LibraryWriter constructors
...
This will provide a few benefits:
- Some of the implementations can now be turned into objects, reducing
memory allocation.
- A single Resource.compressLibrary() method will be able to take a
LibraryWriter, reducing duplication.
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
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