Changeset View
Changeset View
Standalone View
Standalone View
source/lib/config2.h
/* Copyright (C) 2015 Wildfire Games. | /* Copyright (C) 2020 Wildfire Games. | ||||
* | * | ||||
* Permission is hereby granted, free of charge, to any person obtaining | * Permission is hereby granted, free of charge, to any person obtaining | ||||
* a copy of this software and associated documentation files (the | * a copy of this software and associated documentation files (the | ||||
* "Software"), to deal in the Software without restriction, including | * "Software"), to deal in the Software without restriction, including | ||||
* without limitation the rights to use, copy, modify, merge, publish, | * without limitation the rights to use, copy, modify, merge, publish, | ||||
* distribute, sublicense, and/or sell copies of the Software, and to | * distribute, sublicense, and/or sell copies of the Software, and to | ||||
* permit persons to whom the Software is furnished to do so, subject to | * permit persons to whom the Software is furnished to do so, subject to | ||||
* the following conditions: | * the following conditions: | ||||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
// OpenBSD doesn't provide aio.h so we disable its use | // OpenBSD doesn't provide aio.h so we disable its use | ||||
# if OS_LINUX || OS_OPENBSD | # if OS_LINUX || OS_OPENBSD | ||||
# define CONFIG2_FILE_ENABLE_AIO 0 | # define CONFIG2_FILE_ENABLE_AIO 0 | ||||
# else | # else | ||||
# define CONFIG2_FILE_ENABLE_AIO 1 | # define CONFIG2_FILE_ENABLE_AIO 1 | ||||
# endif | # endif | ||||
#endif | #endif | ||||
// allow an attempt to start the Aken driver (i.e. service) at runtime. | |||||
// enable at your own risk on WinXP systems to allow access to | |||||
// better timers than Windows provides. on newer Windows versions, | |||||
// attempts to start the service from code fail unless the process | |||||
// is elevated, and definitely fail due to lack of cross-signing unless | |||||
// test-signing mode is active. | |||||
// if the user has taken explicit action to install and start the | |||||
// service via aken_install.bat, mahaf.cpp will be able to access it | |||||
// even if this is defined to 0. | |||||
#ifndef CONFIG2_MAHAF_ATTEMPT_DRIVER_START | |||||
# define CONFIG2_MAHAF_ATTEMPT_DRIVER_START 0 | |||||
#endif | |||||
// build in OpenGL ES 2.0 mode, instead of the default mode designed for | // build in OpenGL ES 2.0 mode, instead of the default mode designed for | ||||
// GL 1.1 + extensions. | // GL 1.1 + extensions. | ||||
// this disables various features that are not supported by GLES. | // this disables various features that are not supported by GLES. | ||||
#ifndef CONFIG2_GLES | #ifndef CONFIG2_GLES | ||||
# define CONFIG2_GLES 0 | # define CONFIG2_GLES 0 | ||||
#endif | #endif | ||||
// allow use of OpenAL/Ogg/Vorbis APIs | // allow use of OpenAL/Ogg/Vorbis APIs | ||||
Show All 20 Lines |
Wildfire Games · Phabricator