Skip to content

Commit

Permalink
Implemented support for zStandard long distance mode inside the GUI. …
Browse files Browse the repository at this point in the history
…This fixes an issue that causes NSZ to crash when trying to compress using the GUI
  • Loading branch information
nicoboss committed Dec 13, 2022
1 parent 2365cb0 commit 3ae8b9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nsz/gui/NSZ_GUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def build_config(self, config):
config.setdefaults('Advanced', {
'threads': -1,
'multi': 4,
'ldm': 0,
'parseCnmt': 0,
'overwrite': 0,
'rm_old_version': 0,
Expand Down Expand Up @@ -144,6 +145,7 @@ def __init__(self, config, rootWidget):
self.verify = None
self.threads = int(config.get('Advanced', 'threads'))
self.multi = int(config.get('Advanced', 'multi'))
self.long = True if int(config.get('Advanced', 'ldm')) == 1 else False
self.parseCnmt = True if int(config.get('Advanced', 'parseCnmt')) == 1 else None
self.overwrite = True if int(config.get('Advanced', 'overwrite')) == 1 else None
self.rm_old_version = True if int(config.get('Advanced', 'rm_old_version')) == 1 else None
Expand Down
7 changes: 7 additions & 0 deletions nsz/gui/json/settings_advanced.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
"section": "Advanced",
"key": "multi"
},
{
"type": "bool",
"title": "Long Distance Mode",
"desc": "Enables zStandard long distance mode for even better compression",
"section": "Advanced",
"key": "ldm"
},
{
"type": "bool",
"title": "Parse Cnmt",
Expand Down

0 comments on commit 3ae8b9f

Please sign in to comment.