diff options
| author | spicyjpeg <thatspicyjpeg@gmail.com> | 2023-04-05 01:30:55 +0200 |
|---|---|---|
| committer | spicyjpeg <thatspicyjpeg@gmail.com> | 2023-04-05 01:30:55 +0200 |
| commit | b4242acc35c522bd4d4a951a84933ba6f80d2015 (patch) | |
| tree | 02cdff7a11329a7445baae489dd2b38225b12d96 /tools | |
| parent | 651415f5b549b363dec971e2ef589cce098ee1f2 (diff) | |
| download | psn00bsdk-b4242acc35c522bd4d4a951a84933ba6f80d2015.tar.gz | |
Clean up all headers, add and rename some BIOS APIs
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | tools/lzpack/lzp/lzconfig.h | 68 |
2 files changed, 1 insertions, 73 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index c48bc10..9246e19 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -38,11 +38,7 @@ file( ) add_library(lzp STATIC ${_sources}) -target_include_directories( - lzp PUBLIC - lzpack/lzp - ${LIBPSN00B_PATH}/include/lzp -) +target_include_directories(lzp PUBLIC ${LIBPSN00B_PATH}/lzp) ## Executables diff --git a/tools/lzpack/lzp/lzconfig.h b/tools/lzpack/lzp/lzconfig.h deleted file mode 100644 index 65e623c..0000000 --- a/tools/lzpack/lzp/lzconfig.h +++ /dev/null @@ -1,68 +0,0 @@ -/*! \file lzconfig.h - * \brief Library configuration header - * \details Define settings will only take effect when you recompile the library. - */ - -#ifndef _LZP_CONFIG_H -#define _LZP_CONFIG_H - - -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif - - -/* Set to TRUE to compile without data compression routines useful if you - * plan to use this library on a program that does not require said routines - * especially on a platform with limited memory (such as the PlayStation). - * - * This define will rule out lzCompress(), lzSetHashSizes() and - * lzResetHashSizes() functions and their associated functions. - */ -#define LZP_NO_COMPRESS FALSE - - -/* Set to TRUE to make default compression table sizes to maximum and works best - * when compressing large amounts of data. LZP_USE_MALLOC must be set to TRUE to - * prevent stack overflow errors. - * - * Do not enable this if you plan to compile for a platform with limited memory - * otherwise, the library will consume all memory and crash the system. - * - * This define only affects lzCompress(). - */ -#define LZP_MAX_COMPRESS TRUE - - -/* Uncomment to make the library use malloc() instead of array initializers to - * allocate hash tables. Enabling this is a must if you plan to use large hash - * and window table sizes. - */ -#define LZP_USE_MALLOC TRUE - - -/* Hash table sizes (in power-of-two multiple units) - * - * These define only affect lzCompress(). - */ -#if LZP_MAX_COMPRESS == TRUE - -// Minimal defaults -#define LZP_WINDOW_SIZE 17 -#define LZP_HASH1_SIZE 8 -#define LZP_HASH2_SIZE 10 - -#else - -// Maximum defaults -#define LZP_WINDOW_SIZE 17 -#define LZP_HASH1_SIZE 22 -#define LZP_HASH2_SIZE 24 - -#endif - - -#endif // _LZP_CONFIG_H |
