Skip to content

Commit 4e3df76

Browse files
committed
Update SourcePawn.
Fix fix an hl2sdk-mock build error.
1 parent 161084e commit 4e3df76

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

AMBuildScript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ class SMConfig(object):
496496
'-current_version', self.productVersion
497497
]
498498
if self.use_auto_versioning():
499-
binary.compiler.linkflags += [self.versionlib[binary.compiler.target.arch]]
499+
binary.compiler.postlink += [self.versionlib[binary.compiler.target.arch]]
500500
binary.compiler.sourcedeps += SM.generated_headers
501501
return binary
502502

core/HalfLife2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ bool IsWindowsReservedDeviceName(const char *pMapname)
12341234
}
12351235
#endif
12361236

1237-
#if SOURCE_ENGINE >= SE_LEFT4DEAD && defined PLATFORM_WINDOWS
1237+
#if SOURCE_ENGINE >= SE_LEFT4DEAD && defined PLATFORM_WINDOWS && SOURCE_ENGINE != SE_MOCK
12381238
// This frees memory allocated by the game using the game's CRT on Windows,
12391239
// avoiding a crash due to heap corruption (issue #910).
12401240
template< class T, class I >

core/HalfLife2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class CHalfLife2 :
235235
bool IsMapValid(const char *map);
236236
SMFindMapResult FindMap(char *pMapName, size_t nMapNameMax);
237237
SMFindMapResult FindMap(const char *pMapName, char *pFoundMap = NULL, size_t nMapNameMax = 0);
238-
#if SOURCE_ENGINE >= SE_LEFT4DEAD && defined PLATFORM_WINDOWS
238+
#if SOURCE_ENGINE >= SE_LEFT4DEAD && defined PLATFORM_WINDOWS && SOURCE_ENGINE != SE_MOCK
239239
void FreeUtlVectorUtlString(CUtlVector<CUtlString, CUtlMemoryGlobalMalloc<CUtlString>> &vec);
240240
#endif
241241
bool GetMapDisplayName(const char *pMapName, char *pDisplayname, size_t nMapNameMax);

sourcepawn

Submodule sourcepawn updated 130 files

0 commit comments

Comments
 (0)