mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Common: Move host communication enum to Host.h
Given this is actually a part of the Host interface, this should be placed with it. While we're at it, turn it into an enum class so that we don't dump its contained values into the surrounding scope. We can also make Host_Message take the enum type itself directly instead of taking a general int value. After this, it'll be trivial to divide out the rest of Common.h and remove the header from the repository entirely
This commit is contained in:
@ -87,13 +87,13 @@ void Host_RefreshDSPDebuggerWindow()
|
||||
{
|
||||
}
|
||||
|
||||
void Host_Message(int Id)
|
||||
void Host_Message(HostMessageID id)
|
||||
{
|
||||
if (Id == WM_USER_JOB_DISPATCH)
|
||||
if (id == HostMessageID::WMUserJobDispatch)
|
||||
{
|
||||
s_update_main_frame_event.Set();
|
||||
}
|
||||
else if (Id == WM_USER_STOP)
|
||||
else if (id == HostMessageID::WMUserStop)
|
||||
{
|
||||
s_have_wm_user_stop = true;
|
||||
if (Core::IsRunning())
|
||||
|
Reference in New Issue
Block a user