Skip to content

Commit

Permalink
API.hpp: Add missing get/set_bool_property
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 7, 2024
1 parent 051a353 commit 2d92662
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/uevr/API.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,16 @@ class API {
return *get_property_data<T>(name);
}

bool get_bool_property(std::wstring_view name) const {
static const auto fn = initialize()->get_bool_property;
return fn(to_handle(), name.data());
}

void set_bool_property(std::wstring_view name, bool value) {
static const auto fn = initialize()->set_bool_property;
fn(to_handle(), name.data(), value);
}

FName* get_fname() const {
static const auto fn = initialize()->get_fname;
return (FName*)fn(to_handle());
Expand Down

0 comments on commit 2d92662

Please sign in to comment.