Skip to content

Commit

Permalink
Plugins: Add UEVR_UStructFunctions::find_function
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Oct 10, 2023
1 parent 8c530f7 commit 9c5cdf7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/uevr/API.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ typedef struct {
typedef struct {
UEVR_UStructHandle (*get_super_struct)(UEVR_UStructHandle klass);
UEVR_FFieldHandle (*get_child_properties)(UEVR_UStructHandle klass);
UEVR_UFunctionHandle (*find_function)(UEVR_UStructHandle klass, const wchar_t* name);
} UEVR_UStructFunctions;

typedef struct {
Expand Down
4 changes: 4 additions & 0 deletions src/mods/PluginLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ UEVR_UStructFunctions g_ustruct_functions {
[](UEVR_UStructHandle strct) {
return (UEVR_FFieldHandle)USTRUCT(strct)->get_child_properties();
},
// find_function
[](UEVR_UStructHandle strct, const wchar_t* name) {
return (UEVR_UFunctionHandle)USTRUCT(strct)->find_function(name);
},
};

#define UCLASS(x) ((sdk::UClass*)x)
Expand Down

0 comments on commit 9c5cdf7

Please sign in to comment.