Handle Quit event more gracefully

This commit is contained in:
elasota
2020-04-18 05:51:39 -04:00
parent 94f26d0be1
commit 69e3fb3023
9 changed files with 87 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
#pragma once
namespace PortabilityLayer
{
struct IAppEventHandler
{
virtual void OnQuit() = 0;
};
class AppEventHandler
{
public:
static IAppEventHandler *GetInstance();
static void SetInstance(IAppEventHandler *instance);
private:
static IAppEventHandler *ms_instance;
};
}