mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 13:20:27 -06:00
Merge pull request #3434 from lioncash/enum
OnScreenDisplay: Make CallbackType an enum class
This commit is contained in:
@ -83,7 +83,7 @@ void DoCallbacks(CallbackType type)
|
||||
}
|
||||
|
||||
// Wipe all callbacks on shutdown
|
||||
if (type == OSD_SHUTDOWN)
|
||||
if (type == CallbackType::Shutdown)
|
||||
s_callbacks.clear();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user