15 Commits

Author SHA1 Message Date
Kawe Mazidjatari
f45ca75474 ReVPK: use Min operator provided by basetypes
Use Min() from basetypes as this is the prefered min operator.
2024-11-15 14:02:06 +01:00
Kawe Mazidjatari
6e373b1428 VpkLib: light cleanup
Improve global names, initialize VPKDirHeader_t structure, make inlines for checking if language or target exists.
2024-04-22 02:38:48 +02:00
Kawe Mazidjatari
acaf3fdfad Windows: move console color init code to separate function
Reserve Console_Init() for actual console init, if code only needs colors (e.g. a console application that already has a console), then they should call Console_ColorInit().
2024-04-17 20:44:54 +02:00
Kawe Mazidjatari
60a17c6f55 ReVPK: fix undefined symbol
CheckCPUforSSE2() was removed in commit 504d042e6095b24e125c7d38549db860b2d15a67, but ReVPK still needs to check for it.
2024-04-05 19:36:38 +02:00
Kawe Mazidjatari
dd4c9c2637 ReVPK:
Fix usage text, there were some errors in it.
2024-01-30 13:49:30 +01:00
Kawe Mazidjatari
d8417ca455 ReVPK: improve logger name formatting 2024-01-14 22:57:04 +01:00
Kawe Mazidjatari
5266a2e9de ReVPK: bug fixes & improvements
* Make sure the workspace path actually exists before attempting to pack it.
* Make sure the VPK directory tree file was parsed correctly before unpacking store.
* Log debug output for each pack operation to a file.
* Fix bug in s_DirFileRegex regex pattern, which would include a trailing '_' in the context part of the directory tree file name.
* Fix bug in 'GetLevelName()' and 'GetDirNameParts()' causing it to parse the path as well, prune the path before running the regex.
* Renamed 'GetLevelName()' to 'PackedStore_GetDirLevelName()'.
* Renamed 'GetDirNameParts()' to 'PackedStore_GetDirNameParts()'.
* Write a front-end enable file when building client VPK's.
2024-01-14 01:39:11 +01:00
Kawe Mazidjatari
dd4fdb6cbd VokLib: rename pack/unpack methods
More correct names.
2024-01-13 14:09:37 +01:00
Kawe Mazidjatari
0dd630e13a ReVPK: add option for num helper threads and compress levels
Allow the user to set the # amount of helper threads and the compress level of the VPK's.
2024-01-13 14:02:46 +01:00
Kawe Mazidjatari
49b82dc61c ReVPK: add documentation and options for custom paths 2024-01-13 02:18:02 +01:00
Kawe Mazidjatari
05a84339ce Tools: check CPU for SSE2
SSE and SSE2 instructions are being used, check for them instead of crashing somewhere in the program.
2024-01-12 15:49:22 +01:00
Kawe Mazidjatari
a92847fa7a VpkLib: rename CPackedStore to CPackedStoreBuilder
Avoid confusion with the game's CPackedStore class.
2024-01-12 11:02:54 +01:00
Kawe Mazidjatari
106670d940 VpkLib: cleanup packed store class
Make the utility methods statics within the implementation so it could be used by other structs/classes of the VPK builder as well, these utility functions weren't useful outside the class. This also allowed for the removal of the singleton which had no purpose whatsoever.
2024-01-12 11:01:04 +01:00
Kawe Mazidjatari
1f6b1c7d60 KeyValues: fix singleton accessor compile errors
Make each instance implement the accessor instead of the KeyValues system itself.
2024-01-12 01:51:28 +01:00
Kawe Mazidjatari
f0714a43bb CMake: add ReVPK project, standalone VPK tool
Standalone VPK tool that does everything the VPK tool implemented in the dedicated server does (pack, unpack), but independent from the game's runtime.
2024-01-12 01:26:33 +01:00