forked from tiltedphoques/TiltedEvolution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TiltedOnlineApp.h
43 lines (32 loc) · 877 Bytes
/
TiltedOnlineApp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#pragma once
#include <BranchInfo.h>
#if (!IS_MASTER)
#include "CrashHandler.h"
#else
#include <crash_handler/CrashHandler.h>
#endif
struct TiltedOnlineApp final : App
{
TiltedOnlineApp();
virtual ~TiltedOnlineApp();
TiltedOnlineApp(TiltedOnlineApp&&) = delete;
TiltedOnlineApp(const TiltedOnlineApp&) = delete;
TiltedOnlineApp& operator=(TiltedOnlineApp&&) = delete;
TiltedOnlineApp& operator=(const TiltedOnlineApp&) = delete;
[[nodiscard]] void* GetMainAddress() const override;
bool BeginMain() override;
bool EndMain() override;
void Update() override;
bool Attach() override;
bool Detach() override;
static void InstallHooks2();
protected:
void InstallHooks();
void UninstallHooks();
private:
#if (!IS_MASTER)
CrashHandler m_crashHandler;
#else
//ScopedCrashHandler m_crashHandler;
#endif
};