Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Commit 8c7ab45

Browse files
committed
initial
0 parents  commit 8c7ab45

File tree

334 files changed

+145736
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

334 files changed

+145736
-0
lines changed

LICENSE

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
SOURCE 1 SDK LICENSE
2+
3+
Source SDK Copyright(c) Valve Corp.
4+
5+
THIS DOCUMENT DESCRIBES A CONTRACT BETWEEN YOU AND VALVE
6+
CORPORATION ("Valve"). PLEASE READ IT BEFORE DOWNLOADING OR USING
7+
THE SOURCE ENGINE SDK ("SDK"). BY DOWNLOADING AND/OR USING THE
8+
SOURCE ENGINE SDK YOU ACCEPT THIS LICENSE. IF YOU DO NOT AGREE TO
9+
THE TERMS OF THIS LICENSE PLEASE DON�T DOWNLOAD OR USE THE SDK.
10+
11+
You may, free of charge, download and use the SDK to develop a modified Valve game
12+
running on the Source engine. You may distribute your modified Valve game in source and
13+
object code form, but only for free. Terms of use for Valve games are found in the Steam
14+
Subscriber Agreement located here: http://store.steampowered.com/subscriber_agreement/
15+
16+
You may copy, modify, and distribute the SDK and any modifications you make to the
17+
SDK in source and object code form, but only for free. Any distribution of this SDK must
18+
include this LICENSE file and thirdpartylegalnotices.txt.
19+
20+
Any distribution of the SDK or a substantial portion of the SDK must include the above
21+
copyright notice and the following:
22+
23+
DISCLAIMER OF WARRANTIES. THE SOURCE SDK AND ANY
24+
OTHER MATERIAL DOWNLOADED BY LICENSEE IS PROVIDED
25+
"AS IS". VALVE AND ITS SUPPLIERS DISCLAIM ALL
26+
WARRANTIES WITH RESPECT TO THE SDK, EITHER EXPRESS
27+
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED
28+
WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT,
29+
TITLE AND FITNESS FOR A PARTICULAR PURPOSE.
30+
31+
LIMITATION OF LIABILITY. IN NO EVENT SHALL VALVE OR
32+
ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
33+
INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER
34+
(INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF
35+
BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF
36+
BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS)
37+
ARISING OUT OF THE USE OF OR INABILITY TO USE THE
38+
ENGINE AND/OR THE SDK, EVEN IF VALVE HAS BEEN
39+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
40+
41+
42+
If you would like to use the SDK for a commercial purpose, please contact Valve at
43+

README

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
SlimBSP
2+
=======
3+
4+
5+
This is a slimmed down version of the map compile tools from [Valve's Source SDK 2013](https://github.com/ValveSoftware/source-sdk-2013). It also features many community-created features and improvements that should maintain compatibility with the standard 2013 branch engine.
6+
7+
----------
8+
9+
Features
10+
----------
11+
12+
- Completely standalone from the Source SDK
13+
- Large-address
14+
15+
More Info
16+
---------
17+
18+
While this project is intended to keep as much compatibility with the standard HL2 engine as possible, it is developed with Garry's Mod in mind. Should Garry's Mod add new capabilities for mappers, it is likely to break that compatibility.

common/lzma/lzma.h

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
//========= Copyright Valve Corporation, All rights reserved. ============//
2+
//
3+
// Purpose: LZMA Glue. Designed for Tool time Encoding/Decoding.
4+
//
5+
// LZMA Codec interface for engine. Based largely on LzmaUtil.c in SDK
6+
//
7+
// LZMA SDK 9.38 beta
8+
// 2015-01-03 : Igor Pavlov : Public domain
9+
// http://www.7-zip.org/
10+
//
11+
//====================================================================================//
12+
13+
#ifndef LZMA_H
14+
#define LZMA_H
15+
16+
#ifdef _WIN32
17+
#pragma once
18+
#endif
19+
20+
//-----------------------------------------------------------------------------
21+
// These routines are designed for TOOL TIME encoding/decoding on the PC!
22+
// They have not been made to encode/decode on the PPC and lack big endian awarnesss.
23+
// Lightweight GAME TIME Decoding is part of tier1.lib, via CLZMA.
24+
//-----------------------------------------------------------------------------
25+
26+
//-----------------------------------------------------------------------------
27+
// Encoding glue. Returns non-null Compressed buffer if successful.
28+
// Caller must free.
29+
//-----------------------------------------------------------------------------
30+
unsigned char *LZMA_Compress(
31+
unsigned char *pInput,
32+
unsigned int inputSize,
33+
unsigned int *pOutputSize );
34+
35+
//-----------------------------------------------------------------------------
36+
// Decoding glue. Returns TRUE if succesful.
37+
//-----------------------------------------------------------------------------
38+
bool LZMA_Uncompress(
39+
unsigned char *pInput,
40+
unsigned char **ppOutput,
41+
unsigned int *pOutputSize );
42+
43+
//-----------------------------------------------------------------------------
44+
// Decoding helper, returns TRUE if buffer is LZMA compressed.
45+
//-----------------------------------------------------------------------------
46+
bool LZMA_IsCompressed( unsigned char *pInput );
47+
48+
//-----------------------------------------------------------------------------
49+
// Decoding helper, returns non-zero size of data when uncompressed, otherwise 0.
50+
//-----------------------------------------------------------------------------
51+
unsigned int LZMA_GetActualSize( unsigned char *pInput );
52+
53+
#endif

common/xbox/xboxstubs.h

+237
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,237 @@
1+
//========= Copyright Valve Corporation, All rights reserved. ============//
2+
//
3+
// Purpose: Win32 replacements for XBox.
4+
//
5+
//=============================================================================
6+
7+
#if !defined( XBOXSTUBS_H ) && !defined( _X360 )
8+
#define XBOXSTUBS_H
9+
10+
#ifdef _WIN32
11+
#pragma once
12+
#endif
13+
14+
#include "tier0/platform.h"
15+
16+
// Content creation/open flags
17+
#define XCONTENTFLAG_NONE 0x00
18+
#define XCONTENTFLAG_CREATENEW 0x00
19+
#define XCONTENTFLAG_CREATEALWAYS 0x00
20+
#define XCONTENTFLAG_OPENEXISTING 0x00
21+
#define XCONTENTFLAG_OPENALWAYS 0x00
22+
#define XCONTENTFLAG_TRUNCATEEXISTING 0x00
23+
24+
// Content attributes
25+
#define XCONTENTFLAG_NOPROFILE_TRANSFER 0x00
26+
#define XCONTENTFLAG_NODEVICE_TRANSFER 0x00
27+
#define XCONTENTFLAG_STRONG_SIGNED 0x00
28+
#define XCONTENTFLAG_ALLOWPROFILE_TRANSFER 0x00
29+
#define XCONTENTFLAG_MOVEONLY_TRANSFER 0x00
30+
31+
// Console device ports
32+
#define XDEVICE_PORT0 0
33+
#define XDEVICE_PORT1 1
34+
#define XDEVICE_PORT2 2
35+
#define XDEVICE_PORT3 3
36+
#define XUSER_MAX_COUNT 4
37+
#define XUSER_INDEX_NONE 0x000000FE
38+
39+
#define XBX_CLR_DEFAULT 0xFF000000
40+
#define XBX_CLR_WARNING 0x0000FFFF
41+
#define XBX_CLR_ERROR 0x000000FF
42+
43+
#define XBOX_MINBORDERSAFE 0
44+
#define XBOX_MAXBORDERSAFE 0
45+
46+
typedef enum
47+
{
48+
XK_NULL,
49+
XK_BUTTON_UP,
50+
XK_BUTTON_DOWN,
51+
XK_BUTTON_LEFT,
52+
XK_BUTTON_RIGHT,
53+
XK_BUTTON_START,
54+
XK_BUTTON_BACK,
55+
XK_BUTTON_STICK1,
56+
XK_BUTTON_STICK2,
57+
XK_BUTTON_A,
58+
XK_BUTTON_B,
59+
XK_BUTTON_X,
60+
XK_BUTTON_Y,
61+
XK_BUTTON_LEFT_SHOULDER,
62+
XK_BUTTON_RIGHT_SHOULDER,
63+
XK_BUTTON_LTRIGGER,
64+
XK_BUTTON_RTRIGGER,
65+
XK_STICK1_UP,
66+
XK_STICK1_DOWN,
67+
XK_STICK1_LEFT,
68+
XK_STICK1_RIGHT,
69+
XK_STICK2_UP,
70+
XK_STICK2_DOWN,
71+
XK_STICK2_LEFT,
72+
XK_STICK2_RIGHT,
73+
XK_MAX_KEYS,
74+
} xKey_t;
75+
76+
//typedef enum
77+
//{
78+
// XVRB_NONE, // off
79+
// XVRB_ERROR, // fatal error
80+
// XVRB_ALWAYS, // no matter what
81+
// XVRB_WARNING, // non-fatal warnings
82+
// XVRB_STATUS, // status reports
83+
// XVRB_ALL,
84+
//} xverbose_e;
85+
86+
typedef unsigned short WORD;
87+
#ifndef POSIX
88+
typedef unsigned long DWORD;
89+
typedef void* HANDLE;
90+
typedef unsigned __int64 ULONGLONG;
91+
#endif
92+
93+
#ifdef POSIX
94+
typedef DWORD COLORREF;
95+
#endif
96+
97+
#ifndef INVALID_HANDLE_VALUE
98+
#define INVALID_HANDLE_VALUE ((HANDLE)-1)
99+
#endif
100+
101+
// typedef struct {
102+
// IN_ADDR ina; // IP address (zero if not static/DHCP)
103+
// IN_ADDR inaOnline; // Online IP address (zero if not online)
104+
// WORD wPortOnline; // Online port
105+
// BYTE abEnet[6]; // Ethernet MAC address
106+
// BYTE abOnline[20]; // Online identification
107+
// } XNADDR;
108+
109+
typedef int XNADDR;
110+
typedef uint64 XUID;
111+
112+
typedef struct {
113+
BYTE ab[8]; // xbox to xbox key identifier
114+
} XNKID;
115+
116+
typedef struct {
117+
BYTE ab[16]; // xbox to xbox key exchange key
118+
} XNKEY;
119+
120+
typedef struct _XSESSION_INFO
121+
{
122+
XNKID sessionID; // 8 bytes
123+
XNADDR hostAddress; // 36 bytes
124+
XNKEY keyExchangeKey; // 16 bytes
125+
} XSESSION_INFO, *PXSESSION_INFO;
126+
127+
typedef struct _XUSER_DATA
128+
{
129+
BYTE type;
130+
131+
union
132+
{
133+
int nData; // XUSER_DATA_TYPE_INT32
134+
int64 i64Data; // XUSER_DATA_TYPE_INT64
135+
double dblData; // XUSER_DATA_TYPE_DOUBLE
136+
struct // XUSER_DATA_TYPE_UNICODE
137+
{
138+
uint cbData; // Includes null-terminator
139+
char * pwszData;
140+
} string;
141+
float fData; // XUSER_DATA_TYPE_FLOAT
142+
struct // XUSER_DATA_TYPE_BINARY
143+
{
144+
uint cbData;
145+
char * pbData;
146+
} binary;
147+
};
148+
} XUSER_DATA, *PXUSER_DATA;
149+
150+
typedef struct _XUSER_PROPERTY
151+
{
152+
DWORD dwPropertyId;
153+
XUSER_DATA value;
154+
} XUSER_PROPERTY, *PXUSER_PROPERTY;
155+
156+
typedef struct _XUSER_CONTEXT
157+
{
158+
DWORD dwContextId;
159+
DWORD dwValue;
160+
} XUSER_CONTEXT, *PXUSER_CONTEXT;
161+
162+
typedef struct _XSESSION_SEARCHRESULT
163+
{
164+
XSESSION_INFO info;
165+
DWORD dwOpenPublicSlots;
166+
DWORD dwOpenPrivateSlots;
167+
DWORD dwFilledPublicSlots;
168+
DWORD dwFilledPrivateSlots;
169+
DWORD cProperties;
170+
DWORD cContexts;
171+
PXUSER_PROPERTY pProperties;
172+
PXUSER_CONTEXT pContexts;
173+
} XSESSION_SEARCHRESULT, *PXSESSION_SEARCHRESULT;
174+
175+
typedef struct _XSESSION_SEARCHRESULT_HEADER
176+
{
177+
DWORD dwSearchResults;
178+
XSESSION_SEARCHRESULT *pResults;
179+
} XSESSION_SEARCHRESULT_HEADER, *PXSESSION_SEARCHRESULT_HEADER;
180+
181+
typedef struct _XSESSION_REGISTRANT
182+
{
183+
uint64 qwMachineID;
184+
DWORD bTrustworthiness;
185+
DWORD bNumUsers;
186+
XUID *rgUsers;
187+
188+
} XSESSION_REGISTRANT;
189+
190+
typedef struct _XSESSION_REGISTRATION_RESULTS
191+
{
192+
DWORD wNumRegistrants;
193+
XSESSION_REGISTRANT *rgRegistrants;
194+
} XSESSION_REGISTRATION_RESULTS, *PXSESSION_REGISTRATION_RESULTS;
195+
196+
typedef struct {
197+
BYTE bFlags;
198+
BYTE bReserved;
199+
WORD cProbesXmit;
200+
WORD cProbesRecv;
201+
WORD cbData;
202+
BYTE * pbData;
203+
WORD wRttMinInMsecs;
204+
WORD wRttMedInMsecs;
205+
DWORD dwUpBitsPerSec;
206+
DWORD dwDnBitsPerSec;
207+
} XNQOSINFO;
208+
209+
typedef struct {
210+
uint cxnqos;
211+
uint cxnqosPending;
212+
XNQOSINFO axnqosinfo[1];
213+
} XNQOS;
214+
215+
#define XSESSION_CREATE_HOST 0
216+
#define XUSER_DATA_TYPE_INT32 0
217+
#define XSESSION_CREATE_USES_ARBITRATION 0
218+
#define XNET_QOS_LISTEN_ENABLE 0
219+
#define XNET_QOS_LISTEN_DISABLE 0
220+
#define XNET_QOS_LISTEN_SET_DATA 0
221+
222+
FORCEINLINE void XBX_ProcessEvents() {}
223+
FORCEINLINE unsigned int XBX_GetSystemTime() { return 0; }
224+
FORCEINLINE int XBX_GetPrimaryUserId() { return 0; }
225+
FORCEINLINE void XBX_SetPrimaryUserId( DWORD idx ) {}
226+
FORCEINLINE int XBX_GetStorageDeviceId() { return 0; }
227+
FORCEINLINE void XBX_SetStorageDeviceId( DWORD idx ) {}
228+
FORCEINLINE const char *XBX_GetLanguageString() { return ""; }
229+
FORCEINLINE bool XBX_IsLocalized() { return false; }
230+
231+
#define XCONTENT_MAX_DISPLAYNAME_LENGTH 128
232+
#define XCONTENT_MAX_FILENAME_LENGTH 42
233+
234+
#define XBX_INVALID_STORAGE_ID ((DWORD) -1)
235+
#define XBX_STORAGE_DECLINED ((DWORD) -2)
236+
237+
#endif // XBOXSTUBS_H

lib/common/lzma.lib

333 KB
Binary file not shown.

lib/public/bitmap.lib

4.4 MB
Binary file not shown.

lib/public/fgdlib.lib

2.55 MB
Binary file not shown.

lib/public/mathlib.lib

2.78 MB
Binary file not shown.

lib/public/raytrace.lib

866 KB
Binary file not shown.

lib/public/tier0.lib

110 KB
Binary file not shown.

lib/public/tier1.lib

7.68 MB
Binary file not shown.

lib/public/tier2.lib

4.07 MB
Binary file not shown.

lib/public/vmpi.lib

6.4 MB
Binary file not shown.

lib/public/vstdlib.lib

16.5 KB
Binary file not shown.

lib/public/vtf.lib

1.15 MB
Binary file not shown.

0 commit comments

Comments
 (0)