Skip to content

Commit

Permalink
fixed Perfare#24
Browse files Browse the repository at this point in the history
  • Loading branch information
Perfare committed Aug 10, 2021
1 parent 96192ea commit e75ecfc
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions module/src/main/cpp/il2cpp_dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,20 @@ std::string dump_property(Il2CppClass * klass) {
outPut << get_method_modifier(prop->set->flags);
prop_class = il2cpp_class_from_type(prop->set->parameters[0].parameter_type);
}
outPut << prop_class->name << " " << prop->name << " { ";
if (prop->get) {
outPut << "get; ";
}
if (prop->set) {
outPut << "set; ";
if (prop_class) {
outPut << prop_class->name << " " << prop->name << " { ";
if (prop->get) {
outPut << "get; ";
}
if (prop->set) {
outPut << "set; ";
}
outPut << "}\n";
} else {
if (prop->name) {
outPut << " // unknown property " << prop->name;
}
}
outPut << "}\n";
}
}
return outPut.str();
Expand Down

0 comments on commit e75ecfc

Please sign in to comment.