INNER CODE UNIT · C++
items
Perfare/Zygisk-Il2CppDumper · module/src/main/cpp/il2cpp_dump.cpp:409
auto items = reflectionTypes->vector;
for (int j = 0; j < reflectionTypes->max_length; ++j) {
auto klass = il2cpp_class_from_system_type((Il2CppReflectionType *) items[j]);
auto type = il2cpp_class_get_type(klass);
//LOGD("type name : %s", il2cpp_type_get_name(type));
auto outPut = imageStr.str() + dump_type(type);
outPuts.push_back(outPut);
}
}
}
LOGI("write dump file");
auto outPath = std::string(outDir).append("/files/dump.cs");
std::ofstream outStream(outPath);
outStream << imageOutput.str();
auto count = outPuts.size();
for (int i = 0; i < count; ++i) {
outStream << outPuts[i];
}