Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

const 类型的变量无法读取值的问题 #196

Open
stylezhou1 opened this issue Apr 27, 2024 · 0 comments
Open

const 类型的变量无法读取值的问题 #196

stylezhou1 opened this issue Apr 27, 2024 · 0 comments

Comments

@stylezhou1
Copy link

源代码
//TODO 获取构造函数初始化后的字段值 if (attrs & FIELD_ATTRIBUTE_LITERAL && is_enum) { uint64_t val = 0; il2cpp_field_static_get_value(field, &val); outPut << " = " << std::dec << val; }
修改后:
//TODO 获取构造函数初始化后的字段值 if (attrs & FIELD_ATTRIBUTE_LITERAL) { uint64_t val = 0; il2cpp_field_static_get_value(field, &val); outPut << " = " << std::dec << val; }
修改后这样可以dum出const变量的值,但是const string类型不正确还需要进一步处理,我暂时没用到,就没处理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant