Skip to content

Commit

Permalink
Update Dumper.cpp
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
tien0246 authored Dec 4, 2024
1 parent 4f3873b commit c0c8ae6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Core/Dumper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ std::string Dumper::dumpField(void *klass) {
if (field_type_name == "String") {
void *val = nullptr;
Variables::IL2CPP::il2cpp_field_static_get_value(field, &val);
if (!val) {
outPut << " = null;\n";
continue;
}
uint16_t *chars = Variables::IL2CPP::il2cpp_string_chars(val);
outPut << " = \"" << uint16ToString(chars) << "\";\n";
} else {
Expand Down

0 comments on commit c0c8ae6

Please sign in to comment.