mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
Refactor: migrate config to v2 format across examples and libagent
- examples: update config.toml to the v2 schema ([JarLoader] with Mode / InjectionDir / JarPath / EntryClass / EntryMethod) for inject-via-java-api, load-via-injector-exe and retransform-class - libagent: read JarLoader.* instead of JuiceAgent.Modules.JarLoader.*, use Config::isValid() and the new get()/getPath() accessors - libagent: rename call_java_impl to call_static_java_method
This commit is contained in:
1 parent
eb7fd31817
commit
f38a28e8b3
5 files changed
+47
-57
No files matched your search
@@ -38,7 +38,7 @@ namespace JuiceAgent {
|
||||
} else {
|
||||
JuiceAgent::Config::Config cfg(runtime_dir);
|
||||
setConfig(cfg);
|
||||
if(!getConfig().is_valid()) {
|
||||
if(!getConfig().isValid()) {
|
||||
spdlog::warn("[JuiceAgent] Config is not valid!");
|
||||
spdlog::warn("[JuiceAgent] No config provided, Modules will not be loaded!");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user