Perfare / Zygisk-Il2CppDumper

Using Zygisk to dump il2cpp data at runtime
MIT License
2.31k stars 6.01k forks source link

How to dump enum values? #83

Closed srvasn closed 2 years ago

srvasn commented 2 years ago

Currently, enum values are dumped as below

// Namespace: Namespace
[Serializable]
protected internal static enum EnumClassName // TypeDefIndex: 10000
{
    // Fields
    public Int32 value__; // 0x8
    public const Int32 ENUM_VAL_01; // 0x0
    public const Int32 ENUM_VAL_02; // 0x0
    public const Int32 ENUM_VAL_03; // 0x0
}

Any way to get the values for ENUM_VAL_01, ENUM_VAL_02 etc like we do with IL2CppDumper?

Perfare commented 2 years ago

il2cpp_field_get_value should work, I'll add it to the code after testing.

srvasn commented 2 years ago

Awesome, thank you so much

On Tue, 22 Mar, 2022, 12:48 am Perfare, @.***> wrote:

Closed #83 https://github.com/Perfare/Zygisk-Il2CppDumper/issues/83 via 98a8b4d https://github.com/Perfare/Zygisk-Il2CppDumper/commit/98a8b4dcb5f1dcefc8d7afedf92b80738867da03 .

— Reply to this email directly, view it on GitHub https://github.com/Perfare/Zygisk-Il2CppDumper/issues/83#event-6278248713, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC3XRPGEWQAMYJMHVH5KBSDVBDDR3ANCNFSM5MP7YV3Q . You are receiving this because you authored the thread.Message ID: @.***>