forked from alliedmodders/hl2sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync with upstream (Issue alliedmodders#30).
Recompiled tier1 and mathlib for all platforms will come in next commit.
- Loading branch information
Showing
491 changed files
with
29,798 additions
and
10,650 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ enum ELanguage | |
k_Lang_Brazilian, | ||
k_Lang_Bulgarian, | ||
k_Lang_Greek, | ||
k_Lang_Ukrainian, | ||
k_Lang_MAX | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
//========= Copyright Valve Corporation, All rights reserved. ============// | ||
// | ||
// Purpose: LZMA Glue. Designed for Tool time Encoding/Decoding. | ||
// | ||
// LZMA Codec interface for engine. Based largely on LzmaUtil.c in SDK | ||
// | ||
// LZMA SDK 9.38 beta | ||
// 2015-01-03 : Igor Pavlov : Public domain | ||
// http://www.7-zip.org/ | ||
// | ||
//====================================================================================// | ||
|
||
#ifndef LZMA_H | ||
#define LZMA_H | ||
|
||
#ifdef _WIN32 | ||
#pragma once | ||
#endif | ||
|
||
//----------------------------------------------------------------------------- | ||
// These routines are designed for TOOL TIME encoding/decoding on the PC! | ||
// They have not been made to encode/decode on the PPC and lack big endian awarnesss. | ||
// Lightweight GAME TIME Decoding is part of tier1.lib, via CLZMA. | ||
//----------------------------------------------------------------------------- | ||
|
||
//----------------------------------------------------------------------------- | ||
// Encoding glue. Returns non-null Compressed buffer if successful. | ||
// Caller must free. | ||
//----------------------------------------------------------------------------- | ||
unsigned char *LZMA_Compress( | ||
unsigned char *pInput, | ||
unsigned int inputSize, | ||
unsigned int *pOutputSize ); | ||
|
||
//----------------------------------------------------------------------------- | ||
// Decoding glue. Returns TRUE if succesful. | ||
//----------------------------------------------------------------------------- | ||
bool LZMA_Uncompress( | ||
unsigned char *pInput, | ||
unsigned char **ppOutput, | ||
unsigned int *pOutputSize ); | ||
|
||
//----------------------------------------------------------------------------- | ||
// Decoding helper, returns TRUE if buffer is LZMA compressed. | ||
//----------------------------------------------------------------------------- | ||
bool LZMA_IsCompressed( unsigned char *pInput ); | ||
|
||
//----------------------------------------------------------------------------- | ||
// Decoding helper, returns non-zero size of data when uncompressed, otherwise 0. | ||
//----------------------------------------------------------------------------- | ||
unsigned int LZMA_GetActualSize( unsigned char *pInput ); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
#!/bin/bash | ||
|
||
OBJCOPY=objcopy | ||
|
||
function usage { | ||
echo "$0 /path/to/input/file [-o /path/to/output/file ]" | ||
echo "" | ||
} | ||
|
||
if [ $# == 0 ]; then | ||
usage | ||
exit 2 | ||
fi | ||
|
||
if [ $(basename $1) == $1 ]; then | ||
INFILEDIR=$PWD | ||
else | ||
INFILEDIR=$(cd ${1%/*} && echo $PWD) | ||
fi | ||
INFILE=$(basename $1) | ||
|
||
OUTFILEDIR=$INFILEDIR | ||
OUTFILE=$INFILE.dbg | ||
|
||
while getopts "o:" opt; do | ||
case $opt in | ||
o) | ||
OUTFILEDIR=$(cd ${OPTARG%/*} && echo $PWD) | ||
OUTFILE=$(basename $OPTARG) | ||
;; | ||
esac | ||
done | ||
|
||
if [ "$OUTFILEDIR" != "$INFILEDIR" ]; then | ||
INFILE=${INFILEDIR}/${INFILE} | ||
OUTFILE=${OUTFILEDIR}/${OUTFILE} | ||
fi | ||
|
||
pushd "$INFILEDIR" | ||
$OBJCOPY "$INFILE" "$OUTFILE" | ||
$OBJCOPY --add-gnu-debuglink="$OUTFILE" "$INFILE" | ||
popd | ||
|
||
|
||
#!/bin/bash | ||
|
||
OBJCOPY=$STEAM_RUNTIME_PATH/bin/objcopy | ||
|
||
function usage { | ||
echo "$0 /path/to/input/file [-o /path/to/output/file ]" | ||
echo "" | ||
} | ||
|
||
if [ $# == 0 ]; then | ||
usage | ||
exit 2 | ||
fi | ||
|
||
if [ $(basename $1) == $1 ]; then | ||
INFILEDIR=$PWD | ||
else | ||
INFILEDIR=$(cd ${1%/*} && echo $PWD) | ||
fi | ||
INFILE=$(basename $1) | ||
|
||
OUTFILEDIR=$INFILEDIR | ||
OUTFILE=$INFILE.dbg | ||
|
||
while getopts "o:" opt; do | ||
case $opt in | ||
o) | ||
OUTFILEDIR=$(cd ${OPTARG%/*} && echo $PWD) | ||
OUTFILE=$(basename $OPTARG) | ||
;; | ||
esac | ||
done | ||
|
||
if [ "$OUTFILEDIR" != "$INFILEDIR" ]; then | ||
INFILE=${INFILEDIR}/${INFILE} | ||
OUTFILE=${OUTFILEDIR}/${OUTFILE} | ||
fi | ||
|
||
pushd "$INFILEDIR" | ||
$OBJCOPY "$INFILE" "$OUTFILE" | ||
$OBJCOPY --add-gnu-debuglink="$OUTFILE" "$INFILE" | ||
popd | ||
|
||
|
Oops, something went wrong.