Skip to content

Instantly share code, notes, and snippets.

@jmpews
Created August 20, 2020 07:55
Show Gist options
  • Save jmpews/52386d6d67b608b31617001b1f991602 to your computer and use it in GitHub Desktop.
Save jmpews/52386d6d67b608b31617001b1f991602 to your computer and use it in GitHub Desktop.
il2cpp

il2cpp runtime dump

void Image::GetTypes(const Il2CppImage* image, bool exportedOnly, TypeVector* target)
{
    size_t typeCount = Image::GetNumTypes(image);

    for (size_t sourceIndex = 0; sourceIndex < typeCount; sourceIndex++)
    {
        const Il2CppClass* type = Image::GetType(image, sourceIndex);
        if (strcmp(type->name, "<Module>") == 0)
        {
            continue;
        }

        target->push_back(type);
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment