hl2sdk
hl2sdk copied to clipboard
Update tier0 and vstdlib import libraries for Windows.
The 64-bit ones were previously importing by ordinal instead of name.
Because the corresponding DLLs had been updated, importing by ordinal caused MM:S to fail to load with the following error in metamod-fatal.log:
L 08/07/2022 - 01:08:44: Detected engine 18 but could not load: A dynamic link library (DLL) initialization routine failed.
Compare output of dumpbin -exports tier0.lib
and note the name type field.
Before
Version : 0
Machine : 8664 (x64)
TimeDateStamp: 5EEBDB5A Thu Jun 18 17:23:38 2020
SizeOfData : 0000000E
DLL name : tier0.dll
Symbol name : Msg
Type : code
Name type : ordinal
Ordinal : 289
After:
Version : 0
Machine : 8664 (x64)
TimeDateStamp: 62EF4CD6 Sun Aug 7 01:25:42 2022
SizeOfData : 0000000E
DLL name : tier0.dll
Symbol name : Msg
Type : code
Name type : name
Hint : 306
Name : Msg
Note: The 32-bit libs were already importing by name, but there were several new symbols added, so I figured it made sense to just go ahead and update them too.