mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
[WIP] move juiceloader
This commit is contained in:
1 parent
c8c255b233
commit
386dc14a01
9 files changed
+279
-139
No files matched your search
@@ -1,7 +1,6 @@
|
||||
#include <windows.h>
|
||||
#include "Logger.hpp"
|
||||
#include <JuiceAgent.h>
|
||||
#include <juiceloader.h>
|
||||
#include <tinytoml/toml.h>
|
||||
|
||||
// For Java VM
|
||||
@@ -217,19 +216,13 @@ int InitJuiceAgent(const char* ConfigDir) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Step 3: Invoke JuiceLoader Native Init
|
||||
if (InitJuiceLoader(JuiceAgent.env, JuiceAgent.jvmti) != JNI_OK) {
|
||||
PLOGE << "Failed to invoke JuiceLoader Native Init: " << result;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Step 4: Invoke JuiceLoader Init
|
||||
// Step 3: Invoke JuiceLoader Init
|
||||
if (InvokeJuiceLoaderInit(ConfigDir) != 0) {
|
||||
PLOGE << "Failed to invoke JuiceLoader Init code=" << result;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Step 5: Done, cleanup
|
||||
// Step 4: Done, cleanup
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user