-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsettings.h
139 lines (105 loc) · 3.94 KB
/
settings.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
/*
N-Rage`s Dinput8 Plugin
(C) 2002, 2006 Norbert Wladyka
Author`s Email: [email protected]
Website: http://go.to/nrage
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _SETTINGS_H_
#define _SETTINGS_H_
#define DIRECTINPUT_VERSION 0x0800
#define VERSIONNUMBER "2.3c"
// hacks for GNU C compilers
#ifdef __GNUC__
#ifndef WINVER
#define WINVER 0x0500
#endif // #ifndef WINVER
#ifndef _WIN32_IE
#define _WIN32_IE 0x0300
#endif // #ifndef _WIN32_IE
#ifndef _LPCBYTE_DEFINED
#define _LPCBYTE_DEFINED
typedef const unsigned char *LPCBYTE;
#endif // #ifndef _LPCBYTE_DEFINED
#endif // #ifdef __GNUC__
// Our default buffer size for TCHAR arrays (resources get loaded through here)
// MAKE SURE localized resources do not exceed this limit, or they will be cut off.
#define DEFAULT_BUFFER 256
// conform to Plugin Specs 1.0
#define SPECS_VERSION 0x0100
// conform to Plugin Specs 1.1
// #define SPECS_VERSION 0x0101
// use default settings for Release and Debugbuild
#define STDCONFIG
#ifndef STDCONFIG
// ----------------------------------------------------------------------------
// custom (nonstandard) settings here
// workaround for a Adaptoiddriver bug;
// basically if the Adaptoid USB driver doesn't respond that there's a pak, say there is one anyway
#define ADAPTOIDPAK_RUMBLEFIX
// remove unimplemented Elements of the GUI
// #define HIDEUNIMPLEMENTED
// check controllercommands for valid CRC
// #define MAKEADRESSCRCCHECK
// display Button for writing Shortcuts binary
// #define RAWPROFILEWRITE
// enable selection of Transferpak
// #define V_TRANSFERPAK
// enable selection of VoicePak
// #define V_VOICEPAK
// ----------------------------------------------------------------------------
#else
// Standard Settings
#ifdef _DEBUG
// ----------------------------------------------------------------------------
// Standard Debug Settings
// workaround for a Adaptoiddriver bug
#define ADAPTOIDPAK_RUMBLEFIX
// remove unimplemented Elements of the GUI
// #define HIDEUNIMPLEMENTED
// check controllercommands for valid CRC
#define MAKEADRESSCRCCHECK
// display Button for writing Shortcuts binary
#define RAWPROFILEWRITE
// enable selection of Transferpak
#define V_TRANSFERPAK
// enable selection of VoicePak
#define V_VOICEPAK
// spits out loads of extra info for ControllerCommand and ReadController
// #define ENABLE_RAWPAK_DEBUG
// ----------------------------------------------------------------------------
#else
// ----------------------------------------------------------------------------
// Standard Release Settings
// workaround for a Adaptoiddriver bug
#define ADAPTOIDPAK_RUMBLEFIX
// remove unimplemented Elements of the GUI
#define HIDEUNIMPLEMENTED
// check controllercommands for valid CRC
// #define MAKEADRESSCRCCHECK
// display Button for writing Shortcuts binary
// #define RAWPROFILEWRITE
// enable selection of Transferpak
#define V_TRANSFERPAK
// enable selection of VoicePak
// #define V_VOICEPAK
// ----------------------------------------------------------------------------
#endif // #ifdef _DEBUG
#endif // #ifndef STDCONFIG
#undef STDCONFIG
#ifdef _DEBUG
#define VERSIONINFO _T(VERSIONNUMBER) _T("-Debugbuild")
#else
#define VERSIONINFO _T(VERSIONNUMBER)
#endif // #ifdef _DEBUG
#endif // #ifndef _SETTINGS_H_