From bb303564a7ee108a17ff38ad6ff681eb0fdd22b8 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 27 Dec 2017 11:27:04 +0100 Subject: [PATCH] [WIP] Syntax for -lf TODO: Parse and implement parameter --- precomp.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/precomp.cpp b/precomp.cpp index 40dbd7c..9cf2628 100644 --- a/precomp.cpp +++ b/precomp.cpp @@ -1050,6 +1050,14 @@ int init(int argc, char* argv[]) { printf(" c[lbn] Compression method to use, l = lzma2, b = bZip2, n = none \n"); printf(" lm[amount] Set maximal LZMA memory in MiB <%i>\n", lzma_max_memory_default()); printf(" lt[count] Set LZMA thread count \n", auto_detected_thread_count()); + if (long_help) { + printf(" lf[+-][xpiatsd] Set LZMA filters (up to 3 of them can be combined) \n"); + printf(" lf+[xpiatsd] = enable these filters, lf- = disable all\n"); + printf(" X = x86, P = PowerPC, I = IA-64, A = ARM, T = ARM-Thumb\n"); + printf(" S = SPARC, D = delta\n"); + } else { + printf(" lf[+-][xpiatsd] Set LZMA filters (up to 3, see long help for details) \n"); + } printf(" n[lbn] Convert a PCF file to this compression (same as above) \n"); printf(" v Verbose (debug) mode \n"); printf(" d[depth] Set maximal recursion depth <10>\n"); @@ -1246,6 +1254,12 @@ int init_comfort(int argc, char* argv[]) { fprintf(fnewini,";; Thread count for LZMA compression method\n"); fprintf(fnewini,";; 0 = auto-detect\n"); fprintf(fnewini,"LZMA_Thread_Count=0\n"); + fprintf(fnewini,";; LZMA filters to use (up to 3 of the them can be combined)\n"); + fprintf(fnewini,";; X = x86, P = PowerPC, I = IA-64, A = ARM, T = ARM-Thumb\n"); + fprintf(fnewini,";; S = SPARC, D = delta\n"); + fptintf(fnewini,";; Use the following line to disable all filters\n"); + fprintf(fnewini,"; LZMA_Filters=\n"); + fprintf(fnewini,"LZMA_Filters=xpa\n"); fprintf(fnewini,";; Fast mode (on/off)\n"); fprintf(fnewini,"Fast_Mode=off\n\n"); fprintf(fnewini,";; Intense mode (on/off)\n");