Files
JuiceAgent/examples/load-via-injector-exe/config.toml
T
xiaozhou233 56a1c32f49 Feat: add Enabled flag for JarLoader module
- libagent: gate JarLoaderService::onLoaded on the JarLoader.Enabled key (default false) so the module can be turned off from config

- examples: set Enabled = true in inject-via-java-api, load-via-injector-exe and retransform-class config.toml
2026-10-14 21:46:18 +08:00

20 lines
749 B
TOML

# See config.md for more information https://github.com/xiaozhou233/JuiceAgent/blob/main/docs/config.md
[JuiceAgent]
Version = 2
JuiceAgentNativeLibraryPath = ""
[JarLoader]
# Mode: BuiltIn, CustomJar
# BuiltIn: Use the built-in jar loader (recommended, support JuiceAgent-API ( https://github.com/xiaozhou233/JuiceAgent#juiceagent-api ))
# CustomJar: Load the Jar directly, without using JuiceAgent-API
# For more information, please refer to the documentation: https://github.com/xiaozhou233/JuiceAgent/blob/main/docs/advanced.md#load-custom-api--directly-load-jar
Enabled = true
Mode = "BuiltIn"
# InjectionDir only works when Mode is BuiltIn
InjectionDir = "./injection"
JarPath = "./demo.jar"
EntryClass = "Example.Main"
EntryMethod = "run"