Skip to content

Commit

Permalink
feat: menu name macro
Browse files Browse the repository at this point in the history
  • Loading branch information
qudix committed Sep 19, 2024
1 parent bfa15dd commit d2779d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/RE/C/Console.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ namespace RE
{
public:
SF_RTTI_VTABLE(Console);
SF_MENU_NAME("Console");
};
}
3 changes: 3 additions & 0 deletions include/RE/I/IMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#include "RE/S/ScaleformMemoryHeap.h"
#include "RE/U/UIMessageQueue.h"

#define SF_MENU_NAME(NAME) \
static constexpr std::string_view MENU_NAME = NAME

namespace RE
{
struct UpdateSceneRectEvent;
Expand Down

0 comments on commit d2779d5

Please sign in to comment.