mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-06 18:08:31 +00:00
Fix up the tf2, etc. sdk update convar fix
This commit is contained in:
parent
8641223767
commit
567084afd4
@ -178,7 +178,6 @@ class MMSConfig(object):
|
|||||||
'_CRT_SECURE_NO_DEPRECATE',
|
'_CRT_SECURE_NO_DEPRECATE',
|
||||||
'_CRT_SECURE_NO_WARNINGS',
|
'_CRT_SECURE_NO_WARNINGS',
|
||||||
'_CRT_NONSTDC_NO_DEPRECATE',
|
'_CRT_NONSTDC_NO_DEPRECATE',
|
||||||
'_ALLOW_KEYWORD_MACROS',
|
|
||||||
]
|
]
|
||||||
cxx.cflags += [
|
cxx.cflags += [
|
||||||
'/W3',
|
'/W3',
|
||||||
|
|||||||
@ -37,6 +37,7 @@ for sdk_target in MMS.sdk_targets:
|
|||||||
'provider/source/provider_source_console.cpp',
|
'provider/source/provider_source_console.cpp',
|
||||||
'vsp_bridge.cpp'
|
'vsp_bridge.cpp'
|
||||||
]
|
]
|
||||||
|
binary.compiler.defines += ['_ALLOW_KEYWORD_MACROS']
|
||||||
|
|
||||||
if cxx.target.arch == 'x86':
|
if cxx.target.arch == 'x86':
|
||||||
binary.sources += ['sourcehook/sourcehook_hookmangen_x86.cpp']
|
binary.sources += ['sourcehook/sourcehook_hookmangen_x86.cpp']
|
||||||
|
|||||||
@ -27,8 +27,14 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef META_IS_SOURCE2
|
||||||
#define protected public
|
#define protected public
|
||||||
#define private public
|
#define private public
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <convar.h>
|
#include <convar.h>
|
||||||
|
|
||||||
|
#ifndef META_IS_SOURCE2
|
||||||
#undef protected
|
#undef protected
|
||||||
#undef private
|
#undef private
|
||||||
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user