Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit fbedb8e

Browse files
committed
switch to zlib compression
1 parent 675c23d commit fbedb8e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Localizations/Neuron_X-enUS.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ L["Option"] = true
154154
L["Import"] = true
155155
L["Export"] = true
156156
L["Import or Export the current profile:"] = true
157-
L["ImportExport_Desc"] = "Press accept to load in the new profile. WARNING: It will overwrite the current profile."
157+
L["ImportExport_Desc"] = "Copying the profile can be a time consuming experience. It may stall your game for multiple seconds. WARNING: It will overwrite the current profile."
158158
L["ImportWarning"] = "Are you absolutely certain you wish to import this profile? The current profile will be overwritten."
159159
L["Decoding failed."] = true
160160
L["Decompression failed."] = true

Neuron.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ end
686686

687687
function Neuron:GetSerializedAndCompressedProfile()
688688
local uncompressed = Neuron:Serialize(Neuron.db.profile) --serialize the database into a string value
689-
local compressed = LibDeflate:CompressDeflate(uncompressed) --compress the data
689+
local compressed = LibDeflate:CompressZlib(uncompressed) --compress the data
690690
local encoded = LibDeflate:EncodeForPrint(compressed) --encode the data for print for copy+paste
691691
return encoded
692692
end
@@ -699,7 +699,7 @@ function Neuron:SetSerializedAndCompressedProfile(input)
699699
return
700700
end
701701

702-
local uncompressed = LibDeflate:DecompressDeflate(decoded)
702+
local uncompressed = LibDeflate:DecompressZlib(decoded)
703703
if uncompressed == nil then
704704
Neuron:Print(L["Decompression failed"].." "..L["Aborting."])
705705
return

0 commit comments

Comments
 (0)