mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
[Refactor] ClassName
This commit is contained in:
1 parent
40707231c0
commit
fe495657d4
3 files changed
+5
-5
No files matched your search
@@ -6,4 +6,4 @@ target_include_directories(log.c PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
target_compile_definitions(log.c PRIVATE LOG_USE_COLOR)
|
||||
# target_compile_definitions(log.c PRIVATE LOG_USE_COLOR)
|
||||
@@ -105,9 +105,9 @@ jint init_juiceloader(JNIEnv *env, jvmtiEnv *jvmti) {
|
||||
|
||||
|
||||
// Dynamic register jni functions
|
||||
jclass clazz = (*env)->FindClass(env, "cn/xiaozhou233/juiceloader/JuiceLoaderNative");
|
||||
jclass clazz = (*env)->FindClass(env, "cn/xiaozhou233/juiceloader/JuiceLoader");
|
||||
if (clazz == NULL) {
|
||||
log_error("Cannot find JuiceLoaderNative class!");
|
||||
log_error("Cannot find JuiceLoader class!");
|
||||
return JNI_ERR;
|
||||
}
|
||||
JNINativeMethod methods[] = {
|
||||
|
||||
@@ -130,9 +130,9 @@ DWORD WINAPI ThreadProc(LPVOID lpParam) {
|
||||
|
||||
log_info("invoking loader init()...");
|
||||
log_info("============ Loader Info ============\n");
|
||||
jclass cls = (*env)->FindClass(env, "cn/xiaozhou233/juiceloader/JuiceLoader");
|
||||
jclass cls = (*env)->FindClass(env, "cn/xiaozhou233/juiceloader/JuiceLoaderBootstrap");
|
||||
if (cls == NULL) {
|
||||
log_error("FindClass JuiceLoader failed");
|
||||
log_error("FindClass JuiceLoaderBootstrap failed");
|
||||
return 1;
|
||||
}
|
||||
jmethodID mid = (*env)->GetStaticMethodID(env, cls, "init", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V");
|
||||
|
||||
Reference in new issue
Block a user