Fix missing includes and standardize non-system includes to quotes

This commit is contained in:
PeakKS 2025-03-02 02:58:45 -05:00 committed by Nicholas Hastings
parent ace94a97d1
commit 6091f15217
45 changed files with 170 additions and 135 deletions

View File

@ -33,7 +33,7 @@
* @file IPluginManager.h * @file IPluginManager.h
*/ */
#include <ISmmPluginExt.h> #include "ISmmPluginExt.h"
namespace SourceMM namespace SourceMM
{ {

View File

@ -33,9 +33,10 @@
* @file ISmmAPI.h * @file ISmmAPI.h
*/ */
#include <stdarg.h> #include <cstdarg>
#include <sourcehook.h>
#include <IPluginManager.h> #include "sourcehook.h"
#include "IPluginManager.h"
#if defined META_NO_HL2SDK #if defined META_NO_HL2SDK
class CGlobalVars; class CGlobalVars;
@ -44,7 +45,7 @@ class ConCommandBase;
typedef ConCommandBase ProviderConVar; typedef ConCommandBase ProviderConVar;
typedef ConCommandBase ProviderConCommand; typedef ConCommandBase ProviderConCommand;
#else #else
#include <eiface.h> #include "eiface.h"
#if defined META_IS_SOURCE2 #if defined META_IS_SOURCE2
typedef ConVarRefAbstract ProviderConVar; typedef ConVarRefAbstract ProviderConVar;
@ -56,9 +57,6 @@ typedef ConCommandBase ProviderConCommand;
#endif #endif
#endif #endif
#include <ISmmPlugin.h>
#include <ISmmPluginExt.h>
#define MMIFACE_SOURCEHOOK "ISourceHook" /**< ISourceHook Pointer */ #define MMIFACE_SOURCEHOOK "ISourceHook" /**< ISourceHook Pointer */
#define MMIFACE_PLMANAGER "IPluginManager" /**< SourceMM Plugin Functions */ #define MMIFACE_PLMANAGER "IPluginManager" /**< SourceMM Plugin Functions */
#define MMIFACE_SH_HOOKMANAUTOGEN "IHookManagerAutoGen" /**< SourceHook::IHookManagerAutoGen Pointer */ #define MMIFACE_SH_HOOKMANAUTOGEN "IHookManagerAutoGen" /**< SourceHook::IHookManagerAutoGen Pointer */

View File

@ -34,16 +34,16 @@
* The pure-virtual ISmmPlugin callbacks must be implemented for the load to load. * The pure-virtual ISmmPlugin callbacks must be implemented for the load to load.
*/ */
#include <sourcehook.h> #include "sourcehook.h"
#include <IPluginManager.h> #include "IPluginManager.h"
#include <ISmmAPI.h> #include "ISmmAPI.h"
#include <ISmmPluginExt.h> #include "ISmmPluginExt.h"
#ifndef META_NO_HL2SDK #ifndef META_NO_HL2SDK
#if META_IS_SOURCE2 #if META_IS_SOURCE2
#include <interfaces/interfaces.h> #include "interfaces/interfaces.h"
#else #else
#include <tier1/interface.h> #include "tier1/interface.h"
#endif #endif
#endif #endif

View File

@ -26,7 +26,7 @@
#ifndef _INCLUDE_METAMOD_SOURCE_PLUGIN_EXT_H_ #ifndef _INCLUDE_METAMOD_SOURCE_PLUGIN_EXT_H_
#define _INCLUDE_METAMOD_SOURCE_PLUGIN_EXT_H_ #define _INCLUDE_METAMOD_SOURCE_PLUGIN_EXT_H_
#include <stddef.h> #include <cstddef>
/** /**
* @file ISmmPluginExt.h Provides an alternate method for loading plugins, * @file ISmmPluginExt.h Provides an alternate method for loading plugins,

View File

@ -23,11 +23,12 @@
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*/ */
#include <assert.h> #include <cassert>
#include "metamod.h" #include "metamod.h"
#include "metamod_plugins.h" #include "metamod_plugins.h"
#include "metamod_util.h" #include "metamod_util.h"
#include <loader_bridge.h> #include "loader_bridge.h"
#include "provider/provider_base.h" #include "provider/provider_base.h"
using namespace SourceMM; using namespace SourceMM;

View File

@ -23,18 +23,19 @@
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*/ */
#include <stdio.h> #include <cstdio>
#include <sys/stat.h>
#include "metamod_oslink.h" #include "metamod_oslink.h"
#include "metamod.h" #include "metamod.h"
#include <interface.h> #include "interface.h"
#include <eiface.h> #include "eiface.h"
#include <metamod_version.h> #include "metamod_version.h"
#include "metamod_provider.h" #include "metamod_provider.h"
#include "metamod_plugins.h" #include "metamod_plugins.h"
#include "metamod_util.h" #include "metamod_util.h"
#include "metamod_console.h" #include "metamod_console.h"
#include "provider/provider_base.h" #include "provider/provider_base.h"
#include <sys/stat.h>
#define X64_SUFFIX ".x64" #define X64_SUFFIX ".x64"

View File

@ -31,12 +31,12 @@
* @file sourcemm.h * @file sourcemm.h
*/ */
#include <interface.h> #include "interface.h"
#include <eiface.h> #include "eiface.h"
#include <sourcehook/sourcehook_impl.h> #include "sourcehook/sourcehook_impl.h"
#include <sourcehook/sourcehook_hookmangen.h> #include "sourcehook/sourcehook_hookmangen.h"
#include <sourcehook/sourcehook.h> #include "sourcehook/sourcehook.h"
#include <ISmmPlugin.h> #include "ISmmPlugin.h"
#include "metamod_provider.h" #include "metamod_provider.h"
using namespace SourceMM; using namespace SourceMM;

View File

@ -23,10 +23,11 @@
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*/ */
#include <stdio.h> #include <cstdio>
#include <cctype>
#include "metamod_oslink.h" #include "metamod_oslink.h"
#include <ctype.h> #include "metamod_version.h"
#include <metamod_version.h>
#include "metamod.h" #include "metamod.h"
#include "metamod_util.h" #include "metamod_util.h"
#include "metamod_console.h" #include "metamod_console.h"

View File

@ -32,7 +32,7 @@
#define private public #define private public
#endif #endif
#include <convar.h> #include "convar.h"
#ifndef META_IS_SOURCE2 #ifndef META_IS_SOURCE2
#undef protected #undef protected

View File

@ -25,14 +25,14 @@
* Version: $Id$ * Version: $Id$
*/ */
#include <stdio.h> #include <cstdlib>
#include "metamod_oslink.h" #include <cstdio>
#include <stdlib.h>
#include <stdio.h>
#if defined __linux__ || defined __APPLE__ #if defined __linux__ || defined __APPLE__
#include <errno.h> #include <cerrno>
#endif #endif
#include "metamod_oslink.h"
#if defined __WIN32__ || defined _WIN32 || defined WIN32 #if defined __WIN32__ || defined _WIN32 || defined WIN32
const char *dlerror() const char *dlerror()
{ {

View File

@ -85,7 +85,7 @@
#endif #endif
#if defined __linux__ || defined __APPLE__ #if defined __linux__ || defined __APPLE__
#include <errno.h> #include <cerrno>
int GetLastError(); int GetLastError();
#endif #endif
@ -103,7 +103,7 @@ bool GetFileOfAddress(void *pAddr, char *buffer, size_t maxlength);
typedef __int32 int32_t; typedef __int32 int32_t;
typedef unsigned __int32 uint32_t; typedef unsigned __int32 uint32_t;
#elif defined __GNUC__ #elif defined __GNUC__
#include <stdint.h> #include <cstdint>
#endif #endif
#if !defined __linux__ && !defined __APPLE__ #if !defined __linux__ && !defined __APPLE__

View File

@ -23,11 +23,10 @@
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*/ */
#include <stdio.h> #include <cstdio>
#include <memory> #include <memory>
#include <amtl/am-string.h> #include "amtl/am-string.h"
#include "metamod_oslink.h" #include "metamod_oslink.h"
#include "metamod.h" #include "metamod.h"
#include "metamod_plugins.h" #include "metamod_plugins.h"

View File

@ -33,12 +33,13 @@
* @file CPlugin.cpp * @file CPlugin.cpp
*/ */
#include <interface.h> #include "interface.h"
#include <eiface.h> #include "eiface.h"
#include <sh_list.h> #include "sh_list.h"
#include <sh_string.h> #include "sh_string.h"
#include <IPluginManager.h> #include "ISmmAPI.h"
#include <ISmmPluginExt.h> #include "IPluginManager.h"
#include "ISmmPluginExt.h"
#include "metamod_oslink.h" #include "metamod_oslink.h"
/** /**

View File

@ -26,6 +26,8 @@
#ifndef _INCLUDE_METAMOD_SOURCE_SUPPORT_H_ #ifndef _INCLUDE_METAMOD_SOURCE_SUPPORT_H_
#define _INCLUDE_METAMOD_SOURCE_SUPPORT_H_ #define _INCLUDE_METAMOD_SOURCE_SUPPORT_H_
#include "ISmmAPI.h"
namespace SourceMM namespace SourceMM
{ {
class MetamodSourceConVar; class MetamodSourceConVar;

View File

@ -26,11 +26,12 @@
*/ */
#include <cctype> #include <cctype>
#include <string.h> #include <cstring>
#include <stdio.h> #include <cstdio>
#include <string> #include <string>
#include <vector> #include <vector>
#include <algorithm> #include <algorithm>
#include "metamod_util.h" #include "metamod_util.h"
#include "metamod_oslink.h" #include "metamod_oslink.h"

View File

@ -28,7 +28,8 @@
#ifndef _INCLUDE_UTIL_H #ifndef _INCLUDE_UTIL_H
#define _INCLUDE_UTIL_H #define _INCLUDE_UTIL_H
#include <stdarg.h> #include <cstddef>
#include <cstdarg>
#if defined(WIN32) || defined(_WIN32) #if defined(WIN32) || defined(_WIN32)
#define BINARY_EXT ".dll" #define BINARY_EXT ".dll"

View File

@ -23,18 +23,19 @@
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*/ */
#include <stdio.h> #include <cstdio>
#include <setjmp.h> #include <csetjmp>
#include "../metamod_oslink.h" #include "../metamod_oslink.h"
#include <sourcehook.h>
#include <eiface.h>
#include <tier0/icommandline.h>
#include "../metamod_util.h" #include "../metamod_util.h"
#include "sourcehook.h"
#include "eiface.h"
#include "tier0/icommandline.h"
#include "provider_base.h" #include "provider_base.h"
#include "metamod_console.h" #include "metamod_console.h"
#include <filesystem.h> #include "filesystem.h"
#include "metamod.h" #include "metamod.h"
#include <tier1/KeyValues.h> #include "tier1/KeyValues.h"
/* Imports */ /* Imports */

View File

@ -32,10 +32,10 @@
#define DEBUG2 #define DEBUG2
#undef _DEBUG #undef _DEBUG
#endif #endif
#include <sourcehook.h> #include "sourcehook.h"
#include <sh_memfuncinfo.h> #include "sh_memfuncinfo.h"
#if !defined META_IS_SOURCE2 #if !defined META_IS_SOURCE2
#include <iserverplugin.h> #include "iserverplugin.h"
#endif #endif
#include "ISmmAPI.h" #include "ISmmAPI.h"
#include "metamod_provider.h" #include "metamod_provider.h"

View File

@ -23,15 +23,15 @@
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*/ */
#include "provider_source.h" #include <csetjmp>
#include <metamod.h>
#include <metamod_util.h>
#include <metamod_console.h>
#include <KeyValues.h>
#include <filesystem.h>
#include <tier0/icommandline.h>
#include <setjmp.h> #include "provider_source.h"
#include "metamod.h"
#include "metamod_util.h"
#include "metamod_console.h"
#include "KeyValues.h"
#include "filesystem.h"
#include "tier0/icommandline.h"
#if SOURCE_ENGINE >= SE_ORANGEBOX #if SOURCE_ENGINE >= SE_ORANGEBOX
void LocalCommand_Meta(const CCommand& args); void LocalCommand_Meta(const CCommand& args);

View File

@ -28,10 +28,11 @@
#ifndef _INCLUDE_METAMOD_SOURCE_SOURCE1_PROVIDER_H_ #ifndef _INCLUDE_METAMOD_SOURCE_SOURCE1_PROVIDER_H_
#define _INCLUDE_METAMOD_SOURCE_SOURCE1_PROVIDER_H_ #define _INCLUDE_METAMOD_SOURCE_SOURCE1_PROVIDER_H_
#include "../provider_base.h"
#include <string> #include <string>
#include <vector> #include <vector>
#include <sh_list.h>
#include "../provider_base.h"
#include "sh_list.h"
class IFileSystem; class IFileSystem;

View File

@ -24,14 +24,14 @@
*/ */
#include "provider_source2.h" #include "provider_source2.h"
#include <metamod.h> #include "metamod.h"
#include <metamod_util.h> #include "metamod_util.h"
#include <metamod_console.h> #include "metamod_console.h"
#include <amtl/am-string.h> #include "amtl/am-string.h"
#include <eiface.h> #include "eiface.h"
#include <KeyValues.h> #include "KeyValues.h"
#include <filesystem.h> #include "filesystem.h"
#include <iserver.h> #include "iserver.h"
static Source2Provider g_Source2Provider; static Source2Provider g_Source2Provider;

View File

@ -28,12 +28,13 @@
#ifndef _INCLUDE_METAMOD_SOURCE_SOURCE2_PROVIDER_H_ #ifndef _INCLUDE_METAMOD_SOURCE_SOURCE2_PROVIDER_H_
#define _INCLUDE_METAMOD_SOURCE_SOURCE2_PROVIDER_H_ #define _INCLUDE_METAMOD_SOURCE_SOURCE2_PROVIDER_H_
#include "../provider_base.h"
#include <tier1/utlvector.h>
#include <IEngineService.h>
#include <string> #include <string>
#include <vector> #include <vector>
#include "../provider_base.h"
#include "tier1/utlvector.h"
#include "IEngineService.h"
// TODO: is this still needed for Dota or CS2 on any platform? // TODO: is this still needed for Dota or CS2 on any platform?
#if SOURCE_ENGINE == SE_DOTA && defined( _WIN32 ) #if SOURCE_ENGINE == SE_DOTA && defined( _WIN32 )
#define SHOULD_OVERRIDE_ALLOWDEDICATED_SERVER #define SHOULD_OVERRIDE_ALLOWDEDICATED_SERVER

View File

@ -11,7 +11,6 @@
#ifndef _INCLUDE_SMM_LIST_H #ifndef _INCLUDE_SMM_LIST_H
#define _INCLUDE_SMM_LIST_H #define _INCLUDE_SMM_LIST_H
#include <new>
#include <stdlib.h> #include <stdlib.h>
namespace SourceHook namespace SourceHook

View File

@ -12,6 +12,8 @@
#ifndef __SHINT_MEMORY_H__ #ifndef __SHINT_MEMORY_H__
#define __SHINT_MEMORY_H__ #define __SHINT_MEMORY_H__
#include "sourcehook.h"
// Feb 17 / 2005: // Feb 17 / 2005:
// Unprotect now sets to readwrite // Unprotect now sets to readwrite
// The vtable doesn't need to be executable anyway // The vtable doesn't need to be executable anyway

View File

@ -11,6 +11,7 @@
#ifndef __CVECTOR_H__ #ifndef __CVECTOR_H__
#define __CVECTOR_H__ #define __CVECTOR_H__
#include <cstddef>
#include <assert.h> #include <assert.h>
//This file originally from AMX Mod X //This file originally from AMX Mod X

View File

@ -15,7 +15,9 @@
// http://www.angelcode.com/dev/callconv/callconv.html // http://www.angelcode.com/dev/callconv/callconv.html
// http://www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/Chapter_6/CH06-1.html // http://www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/Chapter_6/CH06-1.html
#include <stdio.h> #include <cstdio>
#include <cstdarg> // we might need the address of vsnprintf
#include "sourcehook_impl.h" #include "sourcehook_impl.h"
#include "sourcehook_hookmangen.h" #include "sourcehook_hookmangen.h"
#if defined( PLATFORM_64BITS ) && !defined( _LINUX ) #if defined( PLATFORM_64BITS ) && !defined( _LINUX )
@ -26,7 +28,6 @@ typedef SourceHook::Impl::x64GenContext SHGenContext;
typedef SourceHook::Impl::GenContext SHGenContext; typedef SourceHook::Impl::GenContext SHGenContext;
#endif #endif
#include "sh_memory.h" #include "sh_memory.h"
#include <stdarg.h> // we might need the address of vsnprintf
#if SH_COMP == SH_COMP_MSVC #if SH_COMP == SH_COMP_MSVC
# define GCC_ONLY(x) # define GCC_ONLY(x)

View File

@ -11,11 +11,13 @@
#ifndef __SOURCEHOOK_HOOKMANGEN_H__ #ifndef __SOURCEHOOK_HOOKMANGEN_H__
#define __SOURCEHOOK_HOOKMANGEN_H__ #define __SOURCEHOOK_HOOKMANGEN_H__
#include "sh_pagealloc.h"
#include "sh_asm.h"
#include <list> #include <list>
#include <memory> #include <memory>
#include "sourcehook_impl_cproto.h"
#include "sh_pagealloc.h"
#include "sh_asm.h"
namespace SourceHook namespace SourceHook
{ {
namespace Impl namespace Impl
@ -23,7 +25,7 @@ namespace SourceHook
// Code gen stuff // Code gen stuff
#if SH_COMP == SH_COMP_GCC #if SH_COMP == SH_COMP_GCC
#include <stdint.h> #include <cstdint>
typedef int8_t jit_int8_t; typedef int8_t jit_int8_t;
typedef uint8_t jit_uint8_t; typedef uint8_t jit_uint8_t;
typedef int32_t jit_int32_t; typedef int32_t jit_int32_t;

View File

@ -15,12 +15,13 @@
// http://www.angelcode.com/dev/callconv/callconv.html // http://www.angelcode.com/dev/callconv/callconv.html
// http://www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/Chapter_6/CH06-1.html // http://www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/Chapter_6/CH06-1.html
#include <stdio.h> #include <cstdio>
#include <cstdarg> // we might need the address of vsnprintf
#include "sourcehook_impl.h" #include "sourcehook_impl.h"
#include "sourcehook_hookmangen.h" #include "sourcehook_hookmangen.h"
#include "sourcehook_hookmangen_x86.h" #include "sourcehook_hookmangen_x86.h"
#include "sh_memory.h" #include "sh_memory.h"
#include <stdarg.h> // we might need the address of vsnprintf
#if SH_COMP == SH_COMP_MSVC #if SH_COMP == SH_COMP_MSVC
# define GCC_ONLY(x) # define GCC_ONLY(x)

View File

@ -12,8 +12,9 @@
#ifndef __SOURCEHOOK_HOOKMANGEN_X86_H__ #ifndef __SOURCEHOOK_HOOKMANGEN_X86_H__
#define __SOURCEHOOK_HOOKMANGEN_X86_H__ #define __SOURCEHOOK_HOOKMANGEN_X86_H__
#include <limits.h> #include <climits>
#include "sourcehook_hookmangen.h"
#include "sh_asm.h" #include "sh_asm.h"
#undef REG_EAX #undef REG_EAX

View File

@ -15,8 +15,9 @@
// https://learn.microsoft.com/en-us/cpp/build/x64-calling-convention // https://learn.microsoft.com/en-us/cpp/build/x64-calling-convention
// https://refspecs.linuxbase.orgz/elf/x86_64-abi-0.99.pdf // https://refspecs.linuxbase.orgz/elf/x86_64-abi-0.99.pdf
#include <stdio.h> #include <cstdio>
#include <string> #include <string>
#include "sourcehook_impl.h" #include "sourcehook_impl.h"
#include "sourcehook_hookmangen.h" #include "sourcehook_hookmangen.h"
#include "sourcehook_hookmangen_x86_64.h" #include "sourcehook_hookmangen_x86_64.h"
@ -24,10 +25,10 @@
#include "metamod_oslink.h" #include "metamod_oslink.h"
#include "metamod.h" #include "metamod.h"
#include <interface.h> #include "interface.h"
#include <eiface.h> #include "eiface.h"
#include <metamod_version.h> #include "metamod_version.h"
#include <metamod_provider.h> #include "metamod_provider.h"
extern SourceHook::ISourceHook *g_SHPtr; extern SourceHook::ISourceHook *g_SHPtr;
extern SourceMM::IMetamodSourceProvider *provider; extern SourceMM::IMetamodSourceProvider *provider;

View File

@ -12,7 +12,8 @@
#define __SOURCEHOOK_HOOKMANGEN_X86_64_H__ #define __SOURCEHOOK_HOOKMANGEN_X86_64_H__
#include <cstdint> #include <cstdint>
#include <limits.h> #include <climits>
#include "sh_asm_x86_64.h" #include "sh_asm_x86_64.h"
namespace SourceHook namespace SourceHook

View File

@ -11,6 +11,8 @@
#ifndef __SOURCEHOOK_IMPL_CHOOK_H__ #ifndef __SOURCEHOOK_IMPL_CHOOK_H__
#define __SOURCEHOOK_IMPL_CHOOK_H__ #define __SOURCEHOOK_IMPL_CHOOK_H__
#include "sourcehook.h"
namespace SourceHook namespace SourceHook
{ {
namespace Impl namespace Impl

View File

@ -11,6 +11,8 @@
#ifndef __SOURCEHOOK_IMPL_CHOOKIDMAN_H__ #ifndef __SOURCEHOOK_IMPL_CHOOKIDMAN_H__
#define __SOURCEHOOK_IMPL_CHOOKIDMAN_H__ #define __SOURCEHOOK_IMPL_CHOOKIDMAN_H__
#include "sourcehook.h"
#include "sourcehook_impl_cproto.h"
#include "sh_vector.h" #include "sh_vector.h"
namespace SourceHook namespace SourceHook

View File

@ -12,6 +12,7 @@
#define __SOURCEHOOK_IMPL_CIFACE_H__ #define __SOURCEHOOK_IMPL_CIFACE_H__
#include "sh_list.h" #include "sh_list.h"
#include "sourcehook_impl_chook.h"
namespace SourceHook namespace SourceHook
{ {

View File

@ -11,6 +11,11 @@
#ifndef __SOURCEHOOK_IMPL_CPROTO_H__ #ifndef __SOURCEHOOK_IMPL_CPROTO_H__
#define __SOURCEHOOK_IMPL_CPROTO_H__ #define __SOURCEHOOK_IMPL_CPROTO_H__
#include <cstddef>
#include "sourcehook.h"
#include "sh_vector.h"
namespace SourceHook namespace SourceHook
{ {
namespace Impl namespace Impl

View File

@ -15,6 +15,8 @@
#include "sh_memory.h" #include "sh_memory.h"
#include "sh_pagealloc.h" #include "sh_pagealloc.h"
#include "sourcehook_impl_cleanuptask.h" #include "sourcehook_impl_cleanuptask.h"
#include "sourcehook_impl_chookmaninfo.h"
#include "sourcehook_impl_ciface.h"
namespace SourceHook namespace SourceHook
{ {

View File

@ -22,16 +22,16 @@
* misrepresented as being the original software. * misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*/ */
#include <cassert>
#include "metamod.h" #include "metamod.h"
#include "metamod_util.h" #include "metamod_util.h"
#include <interface.h> #include "interface.h"
#include <eiface.h> #include "eiface.h"
#include <iplayerinfo.h> #include "iplayerinfo.h"
#include <assert.h> #include "loader_bridge.h"
#include <loader_bridge.h> #include "metamod_version.h"
#include <metamod_version.h> #include "sh_string.h"
#include <sh_string.h>
#include "provider/provider_base.h" #include "provider/provider_base.h"
#if SOURCE_ENGINE >= SE_ORANGEBOX #if SOURCE_ENGINE >= SE_ORANGEBOX

View File

@ -23,15 +23,16 @@
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*/ */
#include <stdio.h> #include <cstdio>
#include <ctype.h> #include <cctype>
#include <string.h> #include <cstring>
#include <assert.h> #include <cassert>
#include <stdlib.h> #include <cstdlib>
#include <stddef.h> #include <cstddef>
#include "loader.h" #include "loader.h"
#include <sh_memfuncinfo.h> #include "sh_memfuncinfo.h"
#include <sh_memory.h> #include "sh_memory.h"
#include "utility.h" #include "utility.h"
#include "gamedll.h" #include "gamedll.h"

View File

@ -23,14 +23,15 @@
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*/ */
#include <time.h> #include <ctime>
#include <assert.h> #include <cassert>
#include <stdarg.h> #include <cstdarg>
#include <stdio.h> #include <cstdio>
#include <stdlib.h> #include <cstdlib>
#include <string.h> #include <cstring>
#include <cstdint> #include <cstdint>
#include <cstdlib> #include <cstdlib>
#include "loader.h" #include "loader.h"
#include "serverplugin.h" #include "serverplugin.h"
#include "gamedll.h" #include "gamedll.h"

View File

@ -26,6 +26,8 @@
#ifndef _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_ #ifndef _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_
#define _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_ #define _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_
#include <cstddef>
typedef void* (*QueryValveInterface)(const char *pName, int *pReturnCode); typedef void* (*QueryValveInterface)(const char *pName, int *pReturnCode);
class IServerPluginCallbacks; class IServerPluginCallbacks;

View File

@ -23,13 +23,14 @@
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*/ */
#include <stdio.h> #include <cstdio>
#include <string.h> #include <cstring>
#include <assert.h> #include <cassert>
#include <stddef.h> #include <cstddef>
#include "loader.h" #include "loader.h"
#include <sh_memfuncinfo.h> #include "sh_memfuncinfo.h"
#include <sh_memory.h> #include "sh_memory.h"
#include "serverplugin.h" #include "serverplugin.h"
#include "gamedll.h" #include "gamedll.h"

View File

@ -25,12 +25,13 @@
* Version: $Id$ * Version: $Id$
*/ */
#include <stdio.h> #include <cstdio>
#include <assert.h> #include <cassert>
#include <string.h> #include <cstring>
#include <ctype.h> #include <cctype>
#include <stdarg.h> #include <cstdarg>
#include <stdlib.h> #include <cstdlib>
#include "loader.h" #include "loader.h"
#include "utility.h" #include "utility.h"

View File

@ -28,7 +28,7 @@
#ifndef _INCLUDE_METAMOD_SOURCE_LOADER_UTILITY_H_ #ifndef _INCLUDE_METAMOD_SOURCE_LOADER_UTILITY_H_
#define _INCLUDE_METAMOD_SOURCE_LOADER_UTILITY_H_ #define _INCLUDE_METAMOD_SOURCE_LOADER_UTILITY_H_
#include <stddef.h> #include <cstddef>
extern size_t extern size_t
mm_Format(char *buffer, size_t maxlength, const char *fmt, ...); mm_Format(char *buffer, size_t maxlength, const char *fmt, ...);

View File

@ -37,9 +37,9 @@
# undef MMS_USE_VERSIONLIB # undef MMS_USE_VERSIONLIB
# endif # endif
# if defined MMS_USE_VERSIONLIB # if defined MMS_USE_VERSIONLIB
# include <versionlib.h> # include "versionlib.h"
# else # else
# include <metamod_version_auto.h> # include "metamod_version_auto.h"
# endif # endif
#else #else
#define MMS_BUILD_TAG "manual" #define MMS_BUILD_TAG "manual"

View File

@ -23,8 +23,8 @@
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*/ */
#include <metamod_version.h> #include "metamod_version.h"
#include <versionlib.h> #include "versionlib.h"
const char *METAMOD_LOCAL_REV = MMS_BUILD_LOCAL_REV; const char *METAMOD_LOCAL_REV = MMS_BUILD_LOCAL_REV;
const char *METAMOD_SHA = MMS_BUILD_CSET; const char *METAMOD_SHA = MMS_BUILD_CSET;