Skip to content

Commit

Permalink
Example plugin: Update to reflect previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Feb 18, 2024
1 parent c594988 commit ee839dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/example_plugin/Plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ class ExamplePlugin : public uevr::Plugin {
API::get()->execute_command(L"stat fps");

// Log the UEngine name.
const auto uengine_fname = engine->get_fname();
const auto uengine_name = uengine_fname->to_string();
const auto uengine_name = engine->get_full_name();

// Convert from wide to narrow string (we do not have utility::narrow in this context).
std::string uengine_name_narrow{std::wstring_convert<std::codecvt_utf8<wchar_t>>{}.to_bytes(uengine_name)};
Expand Down

0 comments on commit ee839dc

Please sign in to comment.