Graham
d4da4e2de3
Replace SystemClassLoader with the PlatformClassLoader
...
This ensures the bundler/deobfuscator can only see classes that are part
of the Java runtime, and not classes from the bundler/deobfuscator
themselves.
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
e6402d52c2
Add StackFrameClassWriter
...
This allows us to avoid needing to worry about manipulating stack frames
in individual transformers, which adds lots of complexity. It's much
easier to just make ASM generate them for us.
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
c16b8b30af
Replace *toTypedArray() with plus operator
5 years ago
Graham
626cbacc06
Remove colons from debug log messages for consistency
5 years ago
Graham
54aec42f90
Format .kts files
5 years ago
Graham
ccbbf873af
Switch from Maven to Gradle
5 years ago
Graham
785ce2d9ca
Use require() in PlatformDetectionTransformer
5 years ago
Graham
64abe46971
Replace forEach calls with for loops
...
These are artifacts of the Java port.
5 years ago
Graham
a4cd83fff0
Fix typo in the Portuguese translation of 'loading textures'
5 years ago
Graham
40702d9c35
Reduce Manifest duplication
5 years ago
Graham
11ef4b0227
Sign loaders
5 years ago
Graham
4ff64c95e5
Rename compress<x>Resources to compress<x>Natives
5 years ago
Graham
575632413a
Add missing private modifier
5 years ago
Graham
1d0bcfd88f
Add PublicKeyTransformer to Bundler
5 years ago
Graham
97a11ba765
Inject RSAPrivateCrtKeyParameters in PublicKeyTransformer
5 years ago
Graham
e82f575695
Update jar/pack200/js5 resources in ResourceTransformer
5 years ago
Graham
97a8ada0d4
Add manifests to the unsigned client and loaders
5 years ago
Graham
c6cf9a4d94
Add initial client bundler
5 years ago
Graham
a032e3d472
Exclude CRC from the path used by Resource::write
5 years ago
Graham
d03d1c3bb5
Rename overloaded compress method to compressNative
5 years ago
Graham
3a4085c680
Make compress private
5 years ago
Graham
5d51415baf
Add write method to Resource
5 years ago
Graham
47f4cc060a
Add compress{Jar,Pack,Js5} to Resource
5 years ago
Graham
a79dfd6f32
Implement jaggl and jagmisc resource transformation
5 years ago
Graham
2b82451b96
Remove isInterface argument from MethodInsnNode constructors
...
It's optional.
5 years ago
Graham
015de5d39b
Rename PLATFORM_DETECT to PLATFORM_DETECTION
5 years ago
Graham
c2fe02a3f3
Rename PLATFORM_DETECT_MATCHER to GL_PLATFORM_DETECT_MATCHER
5 years ago
Graham
dcfaedcd2f
Improve opaque predicate regex in PlatformDetectionTransformer
5 years ago
Graham
808c80e896
Add initial public key transformer
5 years ago
Graham
a684c0212d
Load natives from new location below dev.openrs2
5 years ago
Graham
b05ce1e96f
Add ResouceTransformer skeleton
5 years ago
Graham
02d3867f4c
Add platform detection transformer
5 years ago
Graham
5038d1d671
Replace ByteStreams with Kotlin extension method
5 years ago
Graham
250062a72f
Set buffer size to 65,536 bytes
...
Although this is one byte larger than it needs to be to hold the largest
possible packet, I think using a power of two is nicer.
5 years ago
Graham
e9a9a8f962
Format with ktlint
5 years ago
Graham
1647a3e641
Remove @JvmField annotation
...
We don't need it now we have no more Java code left.
5 years ago
Graham
01f30c5f03
Convert RightClickTransformer to Kotlin
5 years ago
Graham
6e9a7f36ef
Convert RightClickTransformer to Kotlin
5 years ago
Graham
4a8704f566
Convert HostCheckTransformer to Kotlin
5 years ago
Graham
1d889357a9
Convert MacResizeTransformer to Kotlin
5 years ago
Graham
f4a608acaf
Convert LoadLibraryTransformer to Kotlin
5 years ago
Graham
e969cc9882
Convert Bundler to Kotlin
5 years ago
Graham
a3e5a19811
Convert CachePathTransformer to Kotlin
5 years ago
Graham
8020ac98ab
Convert InsnNodeUtils to Kotlin
5 years ago
Graham
db785e38d0
Convert MethodNodeUtils to Kotlin
5 years ago
Graham
d9f874906d
Make RightClickTransformer compatible with the unsigned client
5 years ago
Graham
eec9279a2c
Add hasCode() method
5 years ago
Graham
0a5901cde4
Add shorthand MemberRef constructors
5 years ago
Graham
5d63904075
Increase the size of the client's main packet buffer
5 years ago
Graham
dac0cc10c3
Update loadLibrary() calls
...
This commit makes two changes:
- Renames libjaggl.jnilib to libjaggl.dylib, to reflect the more modern
convention on OS X.
- Removes the distinction between jaggl.dll and jaggl64.dll. The
loadLibrary() code only attempts to use jaggl.dll now, with the
correct architecture being selected by the loader.
5 years ago