mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
[Refactor] Merge agent and loader
This commit is contained in:
1 parent
96fee27476
commit
b46802faaa
12 files changed
+331
-356
No files matched your search
@@ -16,6 +16,7 @@ Desc: Entry point for the agent
|
||||
#include "shlwapi.h"
|
||||
#include "tomlc17.h"
|
||||
#include "datautils.h"
|
||||
#include "juiceloader.h"
|
||||
|
||||
#define WIN_X64
|
||||
extern HINSTANCE hAppInstance;
|
||||
@@ -120,6 +121,13 @@ DWORD WINAPI ThreadProc(LPVOID lpParam) {
|
||||
(*jvmti)->AddToSystemClassLoaderSearch(jvmti, InjectionInfo.JuiceLoaderJarPath);
|
||||
log_info("injected loader jar");
|
||||
|
||||
// init juiceloader
|
||||
log_info("init juice loader...");
|
||||
init_juiceloader(env, jvmti);
|
||||
|
||||
initLogger();
|
||||
log_info("juice loader init done");
|
||||
|
||||
// Invoke loader.init(JuiceLoaderLibPath, EntryJarPath)
|
||||
log_info("invoking loader init()...");
|
||||
log_info("============ Loader Info ============\n");
|
||||
|
||||
Reference in new issue
Block a user