mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00: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:
parent
bda668925a
commit
4288bfe0f9
13 changed files with 38 additions and 38 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue