-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.h
79 lines (69 loc) · 1.89 KB
/
main.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef MAIN_H
#define MAIN_H
#define ENABLE_LOGGER 1
// Filters currently do not apply to FMVs and certain menu items
#define ENABLE_SLANG_SHADER 1
// Custom display resolution seems to work now
// Custom render resoluton separate from display still broken
#define ENABLE_CUSTOM_RESOLUTION 2
#define UNICODE
#define _UNICODE
#define WIN32_LEAN_AND_MEAN
#define _WIN32_WINNT _WIN32_WINNT_VISTA
#define WINVER _WIN32_WINNT
#include <windows.h>
#include <tchar.h>
#include <d3d10.h>
#include <dinput.h>
#define VK_VALUE_BEGIN 1
#define VK_VALUE_END ((BYTE)-1)
#include <stdlib.h>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <vector>
#include <deque>
#include <string>
#include <string_view>
#define _tstring std::basic_string<TCHAR>
#define _tstring_view std::basic_string_view<TCHAR>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <utility>
#include <type_traits>
#include <limits>
#include <algorithm>
#include <codecvt>
#include <tuple>
#include <atomic>
#include <regex>
#define CONCAT_BASE(a, b) a ## b
#define CONCAT(a, b) CONCAT_BASE(a, b)
#define STRINGIFY_BASE(n) #n
#define STRINGIFY(n) STRINGIFY_BASE(n)
struct _tstring_view_icmp {
bool operator()(const _tstring_view &a, const _tstring_view &b) const;
};
#define MAP_ENUM(t) std::map<_tstring_view, t, _tstring_view_icmp>
#define MAP_ENUM_ITEM(n) { _T(#n), n }
#define ENUM_MAP(t) std::map<t, std::string>
#define ENUM_MAP_ITEM(n) { n, #n }
#define ENUM_CLASS_MAP_ITEM(n) { ENUM_CLASS::n, #n }
#define FLAG_MAP(t) std::vector<std::pair<t, std::string>>
#define MOD_NAME "MMXLC Interpolation Mod"
#define LOG_FILE_NAME _T("interp-mod.log")
#define INI_FILE_NAME _T("interp-mod.ini")
#define BASE_DLL_NAME _T("\\dinput8.dll")
class cs_wrapper {
class Impl;
Impl *impl;
public:
cs_wrapper();
~cs_wrapper();
void begin_cs();
bool try_begin_cs();
void end_cs();
};
#endif