From 47d1d2f2b490be4888a6620fd474da46247c630d Mon Sep 17 00:00:00 2001 From: Cheatoid Date: Fri, 2 Apr 2021 03:03:57 +0200 Subject: [PATCH] Remove algo nonsense Fast mode (algo = 0) can use only 1 thread, therefore this should be set to 1 since GMod uses numThreads=2. --- LzmaDotNet/util.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LzmaDotNet/util.cs b/LzmaDotNet/util.cs index 88fe992..a683eba 100644 --- a/LzmaDotNet/util.cs +++ b/LzmaDotNet/util.cs @@ -14,7 +14,7 @@ public static class util int lc; // number of literal context bits; 0 <= lc <= 8; default = 3 int lp; // number of literal pos bits; 0 <= lp <= 4; default = 0 int pb; // number of pos bits; 0 <= pb <= 4; default = 2 - int algo; // 0 - fast, 1 - normal, 2 - ???; default = 1 + int algo; // 0 - fast, 1 - normal; default = 1 int fb; // number of fast bytes; 5 <= fb <= 273; default = 32 int btMode; // 0 - HashChain mode, 1 - BinaryTree mode; default = 1 int numHashBytes; // 2, 3 or 4; default = 4 @@ -26,7 +26,7 @@ public static class util private const int pb = 2; private const int lc = 3; private const int lp = 0; - private const int algo = 1; // Note: GMod uses 2 for this, but we gotta use 1. + private const int algo = 1; private const int fb = 32; private const string mf = "bt4";