Skip to content

Commit dc75f14

Browse files
修复一些bug
1 parent a310150 commit dc75f14

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/main/cpp/il2cpp_dump.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,9 @@ void test_il2cpp_api(Il2CppMetadataType type_info){
400400
void il2cpp_api_init(void *handle) {
401401
LOGI("il2cpp_handle: %p", handle);
402402
init_il2cpp_api(handle);
403-
if (il2cpp_domain_get_assemblies) {
403+
if (il2cpp_capture_memory_snapshot) {
404404
Dl_info dlInfo;
405-
if (dladdr((void *) il2cpp_domain_get_assemblies, &dlInfo)) {
405+
if (dladdr((void *) il2cpp_capture_memory_snapshot, &dlInfo)) {
406406
il2cpp_base = reinterpret_cast<uint64_t>(dlInfo.dli_fbase);
407407
}
408408
LOGI("il2cpp_base: %" PRIx64"", il2cpp_base);
@@ -414,8 +414,8 @@ void il2cpp_api_init(void *handle) {
414414
LOGI("Waiting for il2cpp_init...");
415415
sleep(1);
416416
}
417-
auto domain = il2cpp_domain_get();
418-
il2cpp_thread_attach(domain);
417+
// auto domain = il2cpp_domain_get();
418+
// il2cpp_thread_attach(domain);
419419
}
420420

421421
void il2cpp_dump(const char *outDir) {

0 commit comments

Comments
 (0)