Update SourcePawn.

Fix fix an hl2sdk-mock build error.
This commit is contained in:
David Anderson 2021-11-22 23:20:37 -08:00
parent 161084e6f8
commit 4e3df76358
4 changed files with 4 additions and 4 deletions

View File

@ -496,7 +496,7 @@ class SMConfig(object):
'-current_version', self.productVersion '-current_version', self.productVersion
] ]
if self.use_auto_versioning(): if self.use_auto_versioning():
binary.compiler.linkflags += [self.versionlib[binary.compiler.target.arch]] binary.compiler.postlink += [self.versionlib[binary.compiler.target.arch]]
binary.compiler.sourcedeps += SM.generated_headers binary.compiler.sourcedeps += SM.generated_headers
return binary return binary

View File

@ -1234,7 +1234,7 @@ bool IsWindowsReservedDeviceName(const char *pMapname)
} }
#endif #endif
#if SOURCE_ENGINE >= SE_LEFT4DEAD && defined PLATFORM_WINDOWS #if SOURCE_ENGINE >= SE_LEFT4DEAD && defined PLATFORM_WINDOWS && SOURCE_ENGINE != SE_MOCK
// This frees memory allocated by the game using the game's CRT on Windows, // This frees memory allocated by the game using the game's CRT on Windows,
// avoiding a crash due to heap corruption (issue #910). // avoiding a crash due to heap corruption (issue #910).
template< class T, class I > template< class T, class I >

View File

@ -235,7 +235,7 @@ public: //IGameHelpers
bool IsMapValid(const char *map); bool IsMapValid(const char *map);
SMFindMapResult FindMap(char *pMapName, size_t nMapNameMax); SMFindMapResult FindMap(char *pMapName, size_t nMapNameMax);
SMFindMapResult FindMap(const char *pMapName, char *pFoundMap = NULL, size_t nMapNameMax = 0); SMFindMapResult FindMap(const char *pMapName, char *pFoundMap = NULL, size_t nMapNameMax = 0);
#if SOURCE_ENGINE >= SE_LEFT4DEAD && defined PLATFORM_WINDOWS #if SOURCE_ENGINE >= SE_LEFT4DEAD && defined PLATFORM_WINDOWS && SOURCE_ENGINE != SE_MOCK
void FreeUtlVectorUtlString(CUtlVector<CUtlString, CUtlMemoryGlobalMalloc<CUtlString>> &vec); void FreeUtlVectorUtlString(CUtlVector<CUtlString, CUtlMemoryGlobalMalloc<CUtlString>> &vec);
#endif #endif
bool GetMapDisplayName(const char *pMapName, char *pDisplayname, size_t nMapNameMax); bool GetMapDisplayName(const char *pMapName, char *pDisplayname, size_t nMapNameMax);

@ -1 +1 @@
Subproject commit 385d304ea81f1a2484b9638b275387b1e10efce2 Subproject commit fa72b5ed2ace4022264a8de83695246256f8b939