forked from tiltedphoques/TiltedEvolution
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTiltedOnlineApp.h
38 lines (27 loc) · 830 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
#pragma once
#include <BranchInfo.h>
#include <d3d11.h>
#include "CrashHandler.h"
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:
void ApplyNvidiaFix() noexcept;
CrashHandler m_crashHandler;
ID3D11Device* m_pDevice = nullptr;
};