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

Feature Request: Use variables for array sizes #214

Open
pitoriex opened this issue Dec 19, 2021 · 0 comments
Open

Feature Request: Use variables for array sizes #214

pitoriex opened this issue Dec 19, 2021 · 0 comments

Comments

@pitoriex
Copy link

pitoriex commented Dec 19, 2021

Hello, if this is already somehow possible, please tell me how because I'd love to use it.
It'd be great if we could use defined variables as sizes for arrays. You often come across a structure that looks like this:

struct some_struct_t {
    std::uint32_t entries_count;
    void* entries[entries_count];
};

Is there a way to accurately replicate this structure in ReClass?
If yes, please tell me how, if not, would it be possible to add it to ReClass? I'd do it myself but I'm not too fond with C#.

Edit:
Another example:

struct some_struct_t {
    void* begin_data;
    void* end_data;
};

What I've done so far when I have a structure like this is create a Pointer at begin_data and then an array to class instances with a size that matches the count of that specific occurrence, but I'd be great if we could enter [parent.end_data - parent.begin_data] as array size so it automatically shows the correct array when reusing the structure for different instances.

Thanks!

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