From 5468d8c2279622d41caed95050a78255f633284f Mon Sep 17 00:00:00 2001 From: Crum Date: Fri, 22 Jun 2018 21:25:15 -0500 Subject: [PATCH] update LibBase64-1.0 (Export/Import now fully working) Please test test test! --- ElvUI/Libraries/LibBase64-1.0/LibBase64-1.0.lua | 4 +++- ElvUI_Config/Core.lua | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ElvUI/Libraries/LibBase64-1.0/LibBase64-1.0.lua b/ElvUI/Libraries/LibBase64-1.0/LibBase64-1.0.lua index 4af8a4c..a66d7a0 100644 --- a/ElvUI/Libraries/LibBase64-1.0/LibBase64-1.0.lua +++ b/ElvUI/Libraries/LibBase64-1.0/LibBase64-1.0.lua @@ -75,7 +75,9 @@ function LibBase64:Encode(text, maxLineLength, lineEnding) local currentLength = 0 for i = 1, len(text), 3 do - local a, b, c = byte(text, i, i+2) + local a = byte(text, i) + local b = byte(text, i + 1) + local c = byte(text, i + 2) local nilNum = 0 if not b then nilNum = 2 diff --git a/ElvUI_Config/Core.lua b/ElvUI_Config/Core.lua index 539db28..9b3c847 100644 --- a/ElvUI_Config/Core.lua +++ b/ElvUI_Config/Core.lua @@ -259,7 +259,7 @@ local function ExportImport_Open(mode) local exportButton = AceGUI:Create("Button") exportButton:SetText(L["Export Now"]) exportButton:SetAutoWidth(true) - local function OnClick(self) + local function OnClick() label1:SetText(" ") label2:SetText(" ")