1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 20:16:10 +08:00

Update libs.

This commit is contained in:
Nick Hastings
2023-10-13 14:51:08 -04:00
parent c0def21c93
commit 62490710ed
14 changed files with 11 additions and 13 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -103,7 +103,7 @@ DEFINES +=-DX64BITS -DPLATFORM_64BITS -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -D
UNDEF = -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE UNDEF = -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE
BASE_CFLAGS = -fPIC -fno-strict-aliasing -Wall -Wsign-compare -Wno-conversion -Wno-overloaded-virtual -Wno-non-virtual-dtor -Wno-invalid-offsetof \ BASE_CFLAGS = -fPIC -fno-strict-aliasing -Wall -Wsign-compare -Wno-conversion -Wno-overloaded-virtual -Wno-non-virtual-dtor -Wno-invalid-offsetof \
-Wno-unknown-pragmas -Wno-unused -Wno-unknown-pragmas -Wno-unused -Wno-c++11-narrowing
SHLIBCFLAGS = -fPIC SHLIBCFLAGS = -fPIC
# Clang >= 3 || GCC >= 4.7 # Clang >= 3 || GCC >= 4.7

View File

@ -30,7 +30,7 @@ DO_CC += -o $@ -c $<
LIB_OBJS= \ LIB_OBJS= \
$(LIB_OBJ_DIR)/bitbuf.o \ $(LIB_OBJ_DIR)/bitbuf.o \
$(LIB_OBJ_DIR)/byteswap.o \ $(LIB_OBJ_DIR)/cbyteswap.o \
$(LIB_OBJ_DIR)/characterset.o \ $(LIB_OBJ_DIR)/characterset.o \
$(LIB_OBJ_DIR)/checksum_crc.o \ $(LIB_OBJ_DIR)/checksum_crc.o \
$(LIB_OBJ_DIR)/checksum_md5.o \ $(LIB_OBJ_DIR)/checksum_md5.o \
@ -42,7 +42,6 @@ LIB_OBJS= \
$(LIB_OBJ_DIR)/mempool.o \ $(LIB_OBJ_DIR)/mempool.o \
$(LIB_OBJ_DIR)/memstack.o \ $(LIB_OBJ_DIR)/memstack.o \
$(LIB_OBJ_DIR)/NetAdr.o \ $(LIB_OBJ_DIR)/NetAdr.o \
$(LIB_OBJ_DIR)/newbitbuf.o \
$(LIB_OBJ_DIR)/processor_detect.o \ $(LIB_OBJ_DIR)/processor_detect.o \
$(LIB_OBJ_DIR)/rangecheckedvar.o \ $(LIB_OBJ_DIR)/rangecheckedvar.o \
$(LIB_OBJ_DIR)/stringpool.o \ $(LIB_OBJ_DIR)/stringpool.o \
@ -50,9 +49,7 @@ LIB_OBJS= \
$(LIB_OBJ_DIR)/tier1.o \ $(LIB_OBJ_DIR)/tier1.o \
$(LIB_OBJ_DIR)/undiff.o \ $(LIB_OBJ_DIR)/undiff.o \
$(LIB_OBJ_DIR)/uniqueid.o \ $(LIB_OBJ_DIR)/uniqueid.o \
$(LIB_OBJ_DIR)/utlbuffer.o \
$(LIB_OBJ_DIR)/utlbufferutil.o \ $(LIB_OBJ_DIR)/utlbufferutil.o \
$(LIB_OBJ_DIR)/utlstring.o \
$(LIB_OBJ_DIR)/utlsymbol.o \ $(LIB_OBJ_DIR)/utlsymbol.o \
all: dirs $(NAME).$(SHLIBEXT) all: dirs $(NAME).$(SHLIBEXT)

View File

@ -22,7 +22,7 @@
<ProjectName>mathlib</ProjectName> <ProjectName>mathlib</ProjectName>
<ProjectGuid>{884C66F2-7F84-4570-AE6C-B634C1113D69}</ProjectGuid> <ProjectGuid>{884C66F2-7F84-4570-AE6C-B634C1113D69}</ProjectGuid>
<RootNamespace>mathlib</RootNamespace> <RootNamespace>mathlib</RootNamespace>
<WindowsTargetPlatformVersion>10.0.22000.0</WindowsTargetPlatformVersion> <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup> </PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">

View File

@ -1436,11 +1436,11 @@ public:
{ {
while( ! MessageWaiting() ) while( ! MessageWaiting() )
SignalEvent.Wait(); SignalEvent.Wait();
QueueAccessMutex.Lock(); QueueAccessMutex.Lock( __FILE__, __LINE__ );
if (! Head ) if (! Head )
{ {
// multiple readers could make this null // multiple readers could make this null
QueueAccessMutex.Unlock(); QueueAccessMutex.Unlock( __FILE__, __LINE__ );
continue; continue;
} }
*( pMsg ) = Head->Data; *( pMsg ) = Head->Data;
@ -1448,7 +1448,7 @@ public:
Head = Head->Next; Head = Head->Next;
if (! Head) // if empty, fix tail ptr if (! Head) // if empty, fix tail ptr
Tail = NULL; Tail = NULL;
QueueAccessMutex.Unlock(); QueueAccessMutex.Unlock( __FILE__, __LINE__ );
delete remove_this; delete remove_this;
break; break;
} }
@ -1459,7 +1459,7 @@ public:
MsgNode *new1=new MsgNode; MsgNode *new1=new MsgNode;
new1->Data=Msg; new1->Data=Msg;
new1->Next=NULL; new1->Next=NULL;
QueueAccessMutex.Lock(); QueueAccessMutex.Lock( __FILE__, __LINE__ );
if ( Tail ) if ( Tail )
{ {
Tail->Next=new1; Tail->Next=new1;
@ -1471,7 +1471,7 @@ public:
Tail = new1; Tail = new1;
} }
SignalEvent.Set(); SignalEvent.Set();
QueueAccessMutex.Unlock(); QueueAccessMutex.Unlock( __FILE__, __LINE__ );
} }
}; };

View File

@ -16,6 +16,7 @@
#include "tier0/dbg.h" #include "tier0/dbg.h"
#include <string.h> #include <string.h>
#include <cstdint>
#include "tier0/platform.h" #include "tier0/platform.h"
#include "tier0/memalloc.h" #include "tier0/memalloc.h"

View File

@ -1157,7 +1157,7 @@ float bf_read::ReadBitCoordMP( bool bIntegral, bool bLowPrecision )
-1.f/(1<<COORD_FRACTIONAL_BITS_MP_LOWPRECISION) -1.f/(1<<COORD_FRACTIONAL_BITS_MP_LOWPRECISION)
}; };
//equivalent to: float multiply = mul_table[ ((flags & SIGN) ? 1 : 0) + bLowPrecision*2 ]; //equivalent to: float multiply = mul_table[ ((flags & SIGN) ? 1 : 0) + bLowPrecision*2 ];
float multiply = *(float*)((uintptr_t)&mul_table[0] + (flags & 4) + bLowPrecision*8); float multiply = *(float*)((uintp)&mul_table[0] + (flags & 4) + bLowPrecision*8);
static const unsigned char numbits_table[8] = static const unsigned char numbits_table[8] =
{ {

View File

@ -22,7 +22,7 @@
<ProjectName>tier1</ProjectName> <ProjectName>tier1</ProjectName>
<ProjectGuid>{E1DA8DB8-FB4C-4B14-91A6-98BCED6B9720}</ProjectGuid> <ProjectGuid>{E1DA8DB8-FB4C-4B14-91A6-98BCED6B9720}</ProjectGuid>
<RootNamespace>tier1</RootNamespace> <RootNamespace>tier1</RootNamespace>
<WindowsTargetPlatformVersion>10.0.18362.0</WindowsTargetPlatformVersion> <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup> </PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">