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

ObjectDumper: Replaced usage of the old 'GetEnumNames' #2

Merged
merged 1 commit into from
Nov 21, 2022

Conversation

MostlyBored
Copy link
Contributor

@MostlyBored MostlyBored commented Nov 21, 2022

This fixes the Lua error UEnum::GetEnumNames/GetNames is not safe for <4.15 because the names array type changed and we haven't abstracted that yet.

This means the object dumper now works in UE 4.13.

Note that this patch causes addresses for each value in the names array to not be dumped.
The addresses are not very important for names.
To bring the addresses back, the ForEachName API would need to pass it because it's dependent on the UE version.
The Key parameter could perhaps be passed as a pointer instead of a value since that would always be at the start of the element.

API with the newer 'ForEachName' API when dumping the
UEnum names array.
@narknon narknon merged commit 8dcd0be into UE4SS-RE:2.0Dev Nov 21, 2022
@narknon
Copy link
Collaborator

narknon commented Nov 21, 2022

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants