2020-02-09 11:36:49 +00:00
|
|
|
/*
|
2021-05-18 11:51:36 +00:00
|
|
|
N-Rage`s Dinput8 Plugin
|
|
|
|
(C) 2002, 2006 Norbert Wladyka
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
Author`s Email: norbert.wladyka@chello.at
|
|
|
|
Website: http://go.to/nrage
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
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.
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
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.
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
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
|
2016-01-27 09:11:59 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SETTINGS_H_
|
|
|
|
#define _SETTINGS_H_
|
|
|
|
|
|
|
|
#define DIRECTINPUT_VERSION 0x0800
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// Hacks for GNU C compilers? No, thank you...
|
2016-01-27 09:11:59 +00:00
|
|
|
#ifdef __GNUC__
|
|
|
|
|
|
|
|
#ifndef WINVER
|
|
|
|
#define WINVER 0x0500
|
|
|
|
#endif // #ifndef WINVER
|
|
|
|
|
|
|
|
#ifndef _WIN32_IE
|
|
|
|
#define _WIN32_IE 0x0300
|
|
|
|
#endif // #ifndef _WIN32_IE
|
|
|
|
|
|
|
|
//#ifndef _const unsigned char *_DEFINED
|
|
|
|
//#define _const unsigned char *_DEFINED
|
|
|
|
//typedef const unsigned char *const unsigned char *;
|
|
|
|
//#endif
|
|
|
|
|
|
|
|
#endif // #ifdef __GNUC__
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// 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
|
2020-02-09 11:36:49 +00:00
|
|
|
#define DEFAULT_BUFFER 256
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// Use default settings for 'release' and 'debug' builds
|
2016-01-27 09:11:59 +00:00
|
|
|
#define STDCONFIG
|
|
|
|
|
|
|
|
#ifndef STDCONFIG
|
2021-05-18 11:51:36 +00:00
|
|
|
|
|
|
|
// Custom (nonstandard) settings here
|
|
|
|
// Workaround for a Adaptoid driver bug
|
|
|
|
// Basically if the Adaptoid USB driver doesn't respond that there's a pak, say there is one anyway
|
2016-01-27 09:11:59 +00:00
|
|
|
#define ADAPTOIDPAK_RUMBLEFIX
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// Remove unimplemented elements of the GUI
|
2016-01-27 09:11:59 +00:00
|
|
|
// #define HIDEUNIMPLEMENTED
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// Check controller commands for valid CRC
|
2016-01-27 09:11:59 +00:00
|
|
|
// #define MAKEADRESSCRCCHECK
|
2021-05-18 11:51:36 +00:00
|
|
|
// Display button for writing shortcuts binary
|
2016-01-27 09:11:59 +00:00
|
|
|
// #define RAWPROFILEWRITE
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// Enable selection of transfer pak
|
2016-01-27 09:11:59 +00:00
|
|
|
// #define V_TRANSFERPAK
|
2021-05-18 11:51:36 +00:00
|
|
|
// Enable selection of voice pak
|
2016-01-27 09:11:59 +00:00
|
|
|
// #define V_VOICEPAK
|
|
|
|
|
|
|
|
#else
|
2021-05-18 11:51:36 +00:00
|
|
|
// Standard settings
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
#ifdef _DEBUG
|
2021-05-18 11:51:36 +00:00
|
|
|
|
|
|
|
// Standard debug settings
|
|
|
|
// Workaround for a Adaptoid driver bug
|
2016-01-27 09:11:59 +00:00
|
|
|
#define ADAPTOIDPAK_RUMBLEFIX
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// Remove unimplemented Elements of the GUI
|
2016-01-27 09:11:59 +00:00
|
|
|
// #define HIDEUNIMPLEMENTED
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// Check controller commands for valid CRC
|
2016-01-27 09:11:59 +00:00
|
|
|
#define MAKEADRESSCRCCHECK
|
2021-05-18 11:51:36 +00:00
|
|
|
// Display button for writing shortcuts binary
|
2016-01-27 09:11:59 +00:00
|
|
|
#define RAWPROFILEWRITE
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// Enable selection of transfer pak
|
2016-01-27 09:11:59 +00:00
|
|
|
#define V_TRANSFERPAK
|
2021-05-18 11:51:36 +00:00
|
|
|
// Enable selection of voice pak
|
2016-01-27 09:11:59 +00:00
|
|
|
#define V_VOICEPAK
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// Spits out loads of extra info for ControllerCommand and ReadController
|
2016-01-27 09:11:59 +00:00
|
|
|
// #define ENABLE_RAWPAK_DEBUG
|
|
|
|
|
|
|
|
#else
|
2021-05-18 11:51:36 +00:00
|
|
|
|
|
|
|
// Standard release settings
|
|
|
|
// Workaround for a Adaptoid driver bug
|
2016-01-27 09:11:59 +00:00
|
|
|
#define ADAPTOIDPAK_RUMBLEFIX
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// Remove unimplemented elements of the GUI
|
2016-01-27 09:11:59 +00:00
|
|
|
#define HIDEUNIMPLEMENTED
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// Check controller commands for valid CRC
|
2016-01-27 09:11:59 +00:00
|
|
|
// #define MAKEADRESSCRCCHECK
|
2021-05-18 11:51:36 +00:00
|
|
|
// Display button for writing shortcuts binary
|
2016-01-27 09:11:59 +00:00
|
|
|
// #define RAWPROFILEWRITE
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// Enable selection of transfer pak
|
2016-01-27 09:11:59 +00:00
|
|
|
#define V_TRANSFERPAK
|
2021-05-18 11:51:36 +00:00
|
|
|
// Enable selection of voice pak
|
2016-01-27 09:11:59 +00:00
|
|
|
// #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_
|