mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Handle Quit event more gracefully
This commit is contained in:
16
PortabilityLayer/AppEventHandler.cpp
Normal file
16
PortabilityLayer/AppEventHandler.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "AppEventHandler.h"
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
IAppEventHandler *AppEventHandler::ms_instance;
|
||||
|
||||
IAppEventHandler *AppEventHandler::GetInstance()
|
||||
{
|
||||
return ms_instance;
|
||||
}
|
||||
|
||||
void AppEventHandler::SetInstance(IAppEventHandler *instance)
|
||||
{
|
||||
ms_instance = instance;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user