mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
OnScreenDisplay: Make CallbackType an enum class
This commit is contained in:
parent
066af14272
commit
edda018d54
7 changed files with 14 additions and 14 deletions
|
@ -17,13 +17,13 @@ void DrawMessages(); // draw the current messages on the screen. Only call once
|
|||
void ClearMessages();
|
||||
|
||||
// On-screen callbacks
|
||||
enum CallbackType
|
||||
enum class CallbackType
|
||||
{
|
||||
OSD_INIT = 0,
|
||||
OSD_ONFRAME,
|
||||
OSD_SHUTDOWN
|
||||
Initialization,
|
||||
OnFrame,
|
||||
Shutdown
|
||||
};
|
||||
typedef std::function<void()> Callback;
|
||||
using Callback = std::function<void()>;
|
||||
|
||||
void AddCallback(CallbackType type, Callback cb);
|
||||
void DoCallbacks(CallbackType type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue