Skip to content

Commit 1cdc11b

Browse files
添加日志
1 parent 18127cf commit 1cdc11b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/src/main/cpp/il2cpp_dump.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,6 @@ void il2cpp_dump(const char *outDir) {
368368

369369
test_file.close();
370370

371-
auto domain = il2cpp_domain_get();
372371
std::stringstream imageOutput;
373372

374373
std::vector<std::string> outPuts;
@@ -379,15 +378,18 @@ void il2cpp_dump(const char *outDir) {
379378
const char *tassembly_name = assembly_names[i];
380379
LOGD("dumping:%s\n",tassembly_name);
381380
auto tassembly = il2cpp_domain_assembly_open(
382-
domain, tassembly_name);
381+
NULL, tassembly_name);
383382
if(!tassembly){
384383
LOGE("erro assembly name:%s\n",tassembly_name);
385384
continue;
386385
}
386+
LOGD("test:il2cpp_assembly_get_image\n");
387387
auto image = il2cpp_assembly_get_image(tassembly);
388+
LOGD("test:il2cpp_image_get_name\n");
388389
imageOutput << "// Image " << i << ": " << il2cpp_image_get_name(image) << "\n";
389390
std::stringstream imageStr;
390391
imageStr << "\n// Dll : " << il2cpp_image_get_name(image);
392+
LOGD("test:il2cpp_image_get_class_count\n");
391393
auto classCount = il2cpp_image_get_class_count(image);
392394
for (int j = 0; j < classCount; ++j) {
393395
auto klass = il2cpp_image_get_class(image, j);

0 commit comments

Comments
 (0)