mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-19 08:52:34 +01:00
Create initial provider split between Source and Source 2.
This commit is contained in:
parent
035717c694
commit
f9f7513399
@ -28,6 +28,11 @@ for sdk_name in MMS.sdks:
|
|||||||
'vsp_bridge.cpp'
|
'vsp_bridge.cpp'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if sdk_name in ['dota']:
|
||||||
|
binary.sources += ['provider/source2/provider_source2.cpp']
|
||||||
|
else:
|
||||||
|
binary.sources += ['provider/source/provider_source.cpp']
|
||||||
|
|
||||||
# Source2 hack. TODO: check this more deterministically, "are we doing an x64 build?"
|
# Source2 hack. TODO: check this more deterministically, "are we doing an x64 build?"
|
||||||
if binary.compiler.target.arch == 'x86':
|
if binary.compiler.target.arch == 'x86':
|
||||||
binary.sources += ['sourcehook/sourcehook_hookmangen.cpp']
|
binary.sources += ['sourcehook/sourcehook_hookmangen.cpp']
|
||||||
|
@ -109,7 +109,7 @@ IEngineServiceMgr *enginesvcmgr = NULL;
|
|||||||
IVEngineServer *engine = NULL;
|
IVEngineServer *engine = NULL;
|
||||||
IServerGameClients *gameclients = NULL;
|
IServerGameClients *gameclients = NULL;
|
||||||
CGlobalVars *gpGlobals = NULL;
|
CGlobalVars *gpGlobals = NULL;
|
||||||
IMetamodSourceProvider *provider = &g_Ep1Provider;
|
|
||||||
ConCommand meta_local_cmd("meta", LocalCommand_Meta, "Metamod:Source control options");
|
ConCommand meta_local_cmd("meta", LocalCommand_Meta, "Metamod:Source control options");
|
||||||
|
|
||||||
#if SOURCE_ENGINE == SE_DOTA
|
#if SOURCE_ENGINE == SE_DOTA
|
||||||
|
30
core/provider/source/provider_source.cpp
Normal file
30
core/provider/source/provider_source.cpp
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
/**
|
||||||
|
* vim: set ts=4 sw=4 tw=99 noet :
|
||||||
|
* ======================================================
|
||||||
|
* Metamod:Source
|
||||||
|
* Copyright (C) 2004-2023 AlliedModders LLC and authors.
|
||||||
|
* All rights reserved.
|
||||||
|
* ======================================================
|
||||||
|
*
|
||||||
|
* This software is provided 'as-is', without any express or implied warranty.
|
||||||
|
* In no event will the authors be held liable for any damages arising from
|
||||||
|
* the use of this software.
|
||||||
|
*
|
||||||
|
* Permission is granted to anyone to use this software for any purpose,
|
||||||
|
* including commercial applications, and to alter it and redistribute it
|
||||||
|
* freely, subject to the following restrictions:
|
||||||
|
*
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not
|
||||||
|
* claim that you wrote the original software. If you use this software in a
|
||||||
|
* product, an acknowledgment in the product documentation would be
|
||||||
|
* appreciated but is not required.
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
* misrepresented as being the original software.
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "provider_source.h"
|
||||||
|
|
||||||
|
static SourceProvider g_SourceProvider;
|
||||||
|
|
||||||
|
IMetamodSourceProvider* provider = &g_SourceProvider;
|
38
core/provider/source/provider_source.h
Normal file
38
core/provider/source/provider_source.h
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
/**
|
||||||
|
* vim: set ts=4 :
|
||||||
|
* ======================================================
|
||||||
|
* Metamod:Source
|
||||||
|
* Copyright (C) 2004-2023 AlliedModders LLC and authors.
|
||||||
|
* All rights reserved.
|
||||||
|
* ======================================================
|
||||||
|
*
|
||||||
|
* This software is provided 'as-is', without any express or implied warranty.
|
||||||
|
* In no event will the authors be held liable for any damages arising from
|
||||||
|
* the use of this software.
|
||||||
|
*
|
||||||
|
* Permission is granted to anyone to use this software for any purpose,
|
||||||
|
* including commercial applications, and to alter it and redistribute it
|
||||||
|
* freely, subject to the following restrictions:
|
||||||
|
*
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not
|
||||||
|
* claim that you wrote the original software. If you use this software in a
|
||||||
|
* product, an acknowledgment in the product documentation would be
|
||||||
|
* appreciated but is not required.
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
* misrepresented as being the original software.
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*
|
||||||
|
* Version: $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _INCLUDE_METAMOD_SOURCE_SOURCE1_PROVIDER_H_
|
||||||
|
#define _INCLUDE_METAMOD_SOURCE_SOURCE1_PROVIDER_H_
|
||||||
|
|
||||||
|
#include "../provider_base.h"
|
||||||
|
|
||||||
|
class SourceProvider : public BaseProvider
|
||||||
|
{
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
30
core/provider/source2/provider_source2.cpp
Normal file
30
core/provider/source2/provider_source2.cpp
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
/**
|
||||||
|
* vim: set ts=4 sw=4 tw=99 noet :
|
||||||
|
* ======================================================
|
||||||
|
* Metamod:Source
|
||||||
|
* Copyright (C) 2004-2023 AlliedModders LLC and authors.
|
||||||
|
* All rights reserved.
|
||||||
|
* ======================================================
|
||||||
|
*
|
||||||
|
* This software is provided 'as-is', without any express or implied warranty.
|
||||||
|
* In no event will the authors be held liable for any damages arising from
|
||||||
|
* the use of this software.
|
||||||
|
*
|
||||||
|
* Permission is granted to anyone to use this software for any purpose,
|
||||||
|
* including commercial applications, and to alter it and redistribute it
|
||||||
|
* freely, subject to the following restrictions:
|
||||||
|
*
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not
|
||||||
|
* claim that you wrote the original software. If you use this software in a
|
||||||
|
* product, an acknowledgment in the product documentation would be
|
||||||
|
* appreciated but is not required.
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
* misrepresented as being the original software.
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "provider_source2.h"
|
||||||
|
|
||||||
|
static Source2Provider g_Source2Provider;
|
||||||
|
|
||||||
|
IMetamodSourceProvider* provider = &g_Source2Provider;
|
38
core/provider/source2/provider_source2.h
Normal file
38
core/provider/source2/provider_source2.h
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
/**
|
||||||
|
* vim: set ts=4 :
|
||||||
|
* ======================================================
|
||||||
|
* Metamod:Source
|
||||||
|
* Copyright (C) 2004-2023 AlliedModders LLC and authors.
|
||||||
|
* All rights reserved.
|
||||||
|
* ======================================================
|
||||||
|
*
|
||||||
|
* This software is provided 'as-is', without any express or implied warranty.
|
||||||
|
* In no event will the authors be held liable for any damages arising from
|
||||||
|
* the use of this software.
|
||||||
|
*
|
||||||
|
* Permission is granted to anyone to use this software for any purpose,
|
||||||
|
* including commercial applications, and to alter it and redistribute it
|
||||||
|
* freely, subject to the following restrictions:
|
||||||
|
*
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not
|
||||||
|
* claim that you wrote the original software. If you use this software in a
|
||||||
|
* product, an acknowledgment in the product documentation would be
|
||||||
|
* appreciated but is not required.
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
* misrepresented as being the original software.
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*
|
||||||
|
* Version: $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _INCLUDE_METAMOD_SOURCE_SOURCE2_PROVIDER_H_
|
||||||
|
#define _INCLUDE_METAMOD_SOURCE_SOURCE2_PROVIDER_H_
|
||||||
|
|
||||||
|
#include "../provider_base.h"
|
||||||
|
|
||||||
|
class Source2Provider : public BaseProvider
|
||||||
|
{
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
Loading…
x
Reference in New Issue
Block a user