Compare commits

...

10 Commits

Author SHA1 Message Date
Ondřej Hošek 2063e3e0cd
Merge pull request #5 from sl1pkn07/master
Fix makefiles
2018-04-13 20:06:43 +02:00
sL1pKn07 5e3625a8f2 Fix makefiles 2018-04-13 19:04:16 +02:00
Ondřej Hošek f9f11b97c9 update Makefile to 2.4.6 2018-03-03 20:17:08 +01:00
Ondřej Hošek b2837fe8b4 Merge branch 'upstream' 2018-03-03 20:08:11 +01:00
Ondřej Hošek 458db53758 update HLLib to 2.4.6 2018-03-03 20:06:47 +01:00
Ondřej Hošek 9e8c14265a Merge pull request #4 from mark-grimes/patch-1
Fix for recent Dota 2 VPK files
2017-01-06 15:11:09 +01:00
Mark Grimes 7308104c6c Allow missing Null terminator after the final entry 2017-01-06 09:34:56 +00:00
Ondřej Hošek 3e71445267 Merge pull request #3 from sigsegv-mvm/fix-typename
Remove spurious "typename"s in typedefs in HLLib.h
2016-08-01 09:35:12 +02:00
sigsegv bdb71601d1 Remove spurious "typename"s in typedefs in HLLib.h
Commit 423adba1da did this for SGAFile.h but didn't fix it for HLLib.h itself, causing compile errors for programs using the library.
2016-07-31 17:14:26 -07:00
Ondřej Hošek 423adba1da remove spurious "typename"s in typedefs 2014-09-28 17:17:28 +02:00
11 changed files with 55 additions and 51 deletions

View File

@ -19,8 +19,8 @@ using System.Runtime.InteropServices;
public sealed class HLLib
{
#region Constants
public const int HL_VERSION_NUMBER = ((2 << 24) | (4 << 16) | (5 << 8) | 0);
public const string HL_VERSION_STRING = "2.4.5";
public const int HL_VERSION_NUMBER = ((2 << 24) | (4 << 16) | (6 << 8) | 0);
public const string HL_VERSION_STRING = "2.4.6";
public const uint HL_ID_INVALID = 0xffffffff;

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("HLExtract.Net")]
[assembly: AssemblyCopyright("Copyright (C) 2008-2013 Ryan Gregg")]
[assembly: AssemblyCopyright("Copyright (C) 2008-2017 Ryan Gregg")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number
// Revision
//
[assembly: AssemblyVersion("2.4.5.0")]
[assembly: AssemblyFileVersion("2.4.5.0")]
[assembly: AssemblyVersion("2.4.6.0")]
[assembly: AssemblyFileVersion("2.4.6.0")]

View File

@ -51,8 +51,8 @@ END
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 2,4,5,0
PRODUCTVERSION 2,4,5,0
FILEVERSION 2,4,6,0
PRODUCTVERSION 2,4,6,0
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
@ -69,12 +69,12 @@ BEGIN
BEGIN
VALUE "Comments", "Half-Life Package Extraction Utility"
VALUE "FileDescription", "HLExtract Application"
VALUE "FileVersion", "2.4.5"
VALUE "FileVersion", "2.4.6"
VALUE "InternalName", "HLExtract"
VALUE "LegalCopyright", "Copyright (C) 2006-2013 Ryan Gregg"
VALUE "LegalCopyright", "Copyright (C) 2006-2017 Ryan Gregg"
VALUE "OriginalFilename", "HLExtract.exe"
VALUE "ProductName", " HLExtract Application"
VALUE "ProductVersion", "2.4.5"
VALUE "ProductVersion", "2.4.6"
END
END
BLOCK "VarFileInfo"

View File

@ -17,6 +17,7 @@ clean:
rm -f hlextract Main.o
install: hlextract
install -g root -m 0755 -o root -d $(PREFIX)/bin
install -g root -m 0755 -o root hlextract $(PREFIX)/bin
hlextract: Main.o ../HLLib/libhl.a

View File

@ -51,8 +51,8 @@ END
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 2,4,5,0
PRODUCTVERSION 2,4,5,0
FILEVERSION 2,4,6,0
PRODUCTVERSION 2,4,6,0
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
@ -69,12 +69,12 @@ BEGIN
BEGIN
VALUE "Comments", "Half-Life Package Library"
VALUE "FileDescription", "HLLib Dynamic Link Library"
VALUE "FileVersion", "2.4.5"
VALUE "FileVersion", "2.4.6"
VALUE "InternalName", "HLLib"
VALUE "LegalCopyright", "Copyright (C) 2006-2013 Ryan Gregg"
VALUE "LegalCopyright", "Copyright (C) 2006-2017 Ryan Gregg"
VALUE "OriginalFilename", "HLLib.dll"
VALUE "ProductName", " HLLib Dynamic Link Library"
VALUE "ProductVersion", "2.4.5"
VALUE "ProductVersion", "2.4.6"
END
END
BLOCK "VarFileInfo"

View File

@ -1,7 +1,7 @@
CXX = g++
AR = ar
RANLIB = ranlib
HLLIB_VERS = 2.4.5
HLLIB_VERS = 2.4.6
LDFLAGS = -shared -Wl,-soname,libhl.so.2
CXXFLAGS = -O2 -g -fpic -funroll-loops -fvisibility=hidden -std=c++11 -Wall
PREFIX = /usr/local
@ -26,8 +26,8 @@ install: libhl.so.$(HLLIB_VERS)
install -g root -m 0755 -o root -d $(PREFIX)/lib $(PREFIX)/include
install -g root -m 0644 -o root libhl.so.$(HLLIB_VERS) $(PREFIX)/lib
install -g root -m 0644 -o root ../lib/HLLib.h $(PREFIX)/include/hl.h
ln -fs $(PREFIX)/lib/libhl.so.$(HLLIB_VERS) $(PREFIX)/lib/libhl.so.2
ln -fs $(PREFIX)/lib/libhl.so.$(HLLIB_VERS) $(PREFIX)/lib/libhl.so
ln -fs libhl.so.$(HLLIB_VERS) $(PREFIX)/lib/libhl.so.2
ln -fs libhl.so.$(HLLIB_VERS) $(PREFIX)/lib/libhl.so
libhl.so.$(HLLIB_VERS): $(objs)
$(CXX) $(LDFLAGS) -o $@ $(objs)

View File

@ -163,11 +163,11 @@ namespace HLLib
class CSGASpecializedDirectory : public ISGADirectory
{
public:
typedef typename TSGAHeader SGAHeader;
typedef typename TSGADirectoryHeader SGADirectoryHeader;
typedef typename TSGASection SGASection;
typedef typename TSGAFolder SGAFolder;
typedef typename TSGAFile SGAFile;
typedef TSGAHeader SGAHeader;
typedef TSGADirectoryHeader SGADirectoryHeader;
typedef TSGASection SGASection;
typedef TSGAFolder SGAFolder;
typedef TSGAFile SGAFile;
CSGASpecializedDirectory(CSGAFile& File);
@ -192,10 +192,10 @@ namespace HLLib
class CSGASpecializedDirectory<TSGAHeader, TSGADirectoryHeader, TSGASection, TSGAFolder, SGAFile4> : public ISGADirectory
{
public:
typedef typename TSGAHeader SGAHeader;
typedef typename TSGADirectoryHeader SGADirectoryHeader;
typedef typename TSGASection SGASection;
typedef typename TSGAFolder SGAFolder;
typedef TSGAHeader SGAHeader;
typedef TSGADirectoryHeader SGADirectoryHeader;
typedef TSGASection SGASection;
typedef TSGAFolder SGAFolder;
typedef CSGAFile::SGAFile4 SGAFile;
CSGASpecializedDirectory(CSGAFile& File);
@ -221,10 +221,10 @@ namespace HLLib
class CSGASpecializedDirectory<TSGAHeader, TSGADirectoryHeader, TSGASection, TSGAFolder, SGAFile6> : public ISGADirectory
{
public:
typedef typename TSGAHeader SGAHeader;
typedef typename TSGADirectoryHeader SGADirectoryHeader;
typedef typename TSGASection SGASection;
typedef typename TSGAFolder SGAFolder;
typedef TSGAHeader SGAHeader;
typedef TSGADirectoryHeader SGADirectoryHeader;
typedef TSGASection SGASection;
typedef TSGAFolder SGAFolder;
typedef CSGAFile::SGAFile6 SGAFile;
CSGASpecializedDirectory(CSGAFile& File);

View File

@ -115,7 +115,7 @@ hlBool CVPKFile::MapDataStructures()
}
}
while(hlTrue)
while(lpViewData < lpViewDirectoryDataEnd)
{
const hlChar *lpExtension;
if(!this->MapString(lpViewData, lpViewDirectoryDataEnd, lpExtension))

View File

@ -65,8 +65,8 @@ typedef hlSingle hlFloat;
#define hlFalse 0
#define hlTrue 1
#define HL_VERSION_NUMBER ((2 << 24) | (4 << 16) | (5 << 8) | 0)
#define HL_VERSION_STRING "2.4.5"
#define HL_VERSION_NUMBER ((2 << 24) | (4 << 16) | (6 << 8) | 0)
#define HL_VERSION_STRING "2.4.6"
#define HL_ID_INVALID 0xffffffff

View File

@ -9,11 +9,11 @@ Library/Author Information:
===========================
---- General Library Information ----
Date : October 17th, 2013
Date : January 22nd, 2017
Author : Ryan Gregg
Michael Mohr (Linux Port)
Title : HLLib
Build : 2.4.5
Build : 2.4.6
Email address : ryansgregg@hotmail.com (Ryan Gregg)
m.mohr@laposte.net (Michael Mohr)
Home page / Website : http://nemesis.thewavelength.net/
@ -93,6 +93,9 @@ Console Commands (Interactive console mode):
Library Changelog:
==================
v2.4.6
- Modified VPF file support to handle the removal of a null terminator from the end of directory.
v2.4.5
- Added support for new SGA file format (v6).
- Added support for new SGA file format (v7).

View File

@ -65,8 +65,8 @@ typedef hlSingle hlFloat;
#define hlFalse 0
#define hlTrue 1
#define HL_VERSION_NUMBER ((2 << 24) | (4 << 16) | (5 << 8) | 0)
#define HL_VERSION_STRING "2.4.5"
#define HL_VERSION_NUMBER ((2 << 24) | (4 << 16) | (6 << 8) | 0)
#define HL_VERSION_STRING "2.4.6"
#define HL_ID_INVALID 0xffffffff
@ -2031,11 +2031,11 @@ namespace HLLib
class CSGASpecializedDirectory : public ISGADirectory
{
public:
typedef typename TSGAHeader SGAHeader;
typedef typename TSGADirectoryHeader SGADirectoryHeader;
typedef typename TSGASection SGASection;
typedef typename TSGAFolder SGAFolder;
typedef typename TSGAFile SGAFile;
typedef TSGAHeader SGAHeader;
typedef TSGADirectoryHeader SGADirectoryHeader;
typedef TSGASection SGASection;
typedef TSGAFolder SGAFolder;
typedef TSGAFile SGAFile;
CSGASpecializedDirectory(CSGAFile& File);
@ -2060,10 +2060,10 @@ namespace HLLib
class CSGASpecializedDirectory<TSGAHeader, TSGADirectoryHeader, TSGASection, TSGAFolder, SGAFile4> : public ISGADirectory
{
public:
typedef typename TSGAHeader SGAHeader;
typedef typename TSGADirectoryHeader SGADirectoryHeader;
typedef typename TSGASection SGASection;
typedef typename TSGAFolder SGAFolder;
typedef TSGAHeader SGAHeader;
typedef TSGADirectoryHeader SGADirectoryHeader;
typedef TSGASection SGASection;
typedef TSGAFolder SGAFolder;
typedef CSGAFile::SGAFile4 SGAFile;
CSGASpecializedDirectory(CSGAFile& File);
@ -2089,10 +2089,10 @@ namespace HLLib
class CSGASpecializedDirectory<TSGAHeader, TSGADirectoryHeader, TSGASection, TSGAFolder, SGAFile6> : public ISGADirectory
{
public:
typedef typename TSGAHeader SGAHeader;
typedef typename TSGADirectoryHeader SGADirectoryHeader;
typedef typename TSGASection SGASection;
typedef typename TSGAFolder SGAFolder;
typedef TSGAHeader SGAHeader;
typedef TSGADirectoryHeader SGADirectoryHeader;
typedef TSGASection SGASection;
typedef TSGAFolder SGAFolder;
typedef CSGAFile::SGAFile6 SGAFile;
CSGASpecializedDirectory(CSGAFile& File);