mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
23 lines
482 B
C++
23 lines
482 B
C++
|
// Copyright 2016 Dolphin Emulator Project
|
||
|
// Licensed under GPLv2+
|
||
|
// Refer to the license.txt file included.
|
||
|
|
||
|
#include "DolphinWX/WxEventUtils.h"
|
||
|
|
||
|
#include <wx/event.h>
|
||
|
#include "Core/Core.h"
|
||
|
#include "Core/NetPlayProto.h"
|
||
|
|
||
|
namespace WxEventUtils
|
||
|
{
|
||
|
void OnEnableIfCoreNotRunning(wxUpdateUIEvent& event)
|
||
|
{
|
||
|
event.Enable(!Core::IsRunning());
|
||
|
}
|
||
|
|
||
|
void OnEnableIfNetplayNotRunning(wxUpdateUIEvent& event)
|
||
|
{
|
||
|
event.Enable(!NetPlay::IsNetPlayRunning());
|
||
|
}
|
||
|
} // namespace WxEventUtils
|