From 1f6383929fced2962c0d8b2617c0627d8dc3b7bd Mon Sep 17 00:00:00 2001 From: Flamanis Date: Sun, 2 Jul 2023 10:14:47 -0500 Subject: [PATCH 1/2] Actually save to disk auto run code --- core/parser.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/core/parser.lua b/core/parser.lua index d62e36d0..cc159a7b 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -5902,6 +5902,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1 tinsert(_detalhes_global.exit_log, "9 - Saving Auto Run Code.") local saveAutoRunCode = function() Details222.AutoRunCode.OnLogout() + _detalhes_global.run_code = Details.run_code end xpcall(saveAutoRunCode, logSaverError) end) --end of saving data From c6f3f34af776150f4100cc312f5b6b22291e0e1f Mon Sep 17 00:00:00 2001 From: Flamanis Date: Sun, 2 Jul 2023 10:59:42 -0500 Subject: [PATCH 2/2] Move and change run_code save --- core/parser.lua | 1 - functions/autorun.lua | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/parser.lua b/core/parser.lua index cc159a7b..d62e36d0 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -5902,7 +5902,6 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1 tinsert(_detalhes_global.exit_log, "9 - Saving Auto Run Code.") local saveAutoRunCode = function() Details222.AutoRunCode.OnLogout() - _detalhes_global.run_code = Details.run_code end xpcall(saveAutoRunCode, logSaverError) end) --end of saving data diff --git a/functions/autorun.lua b/functions/autorun.lua index b16d245e..45c4db6b 100644 --- a/functions/autorun.lua +++ b/functions/autorun.lua @@ -92,5 +92,5 @@ function Details222.AutoRunCode.StartAutoRun() end function Details222.AutoRunCode.OnLogout() - Details.run_code = Details222.AutoRunCode.CodeTable + _detalhes_global.run_code = Details222.AutoRunCode.CodeTable end \ No newline at end of file