From aa8ccf234a45b05e54ce32fec211d2af0bcc4306 Mon Sep 17 00:00:00 2001 From: IgorTimofeev <11760002+IgorTimofeev@users.noreply.github.com> Date: Sat, 17 Apr 2021 18:08:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=BB=D1=8F=D0=B4=D1=8C,=20=D0=BD=D1=83?= =?UTF-8?q?=20=D0=B2=D0=B5=D1=87=D0=BD=D0=BE=20=D0=BD=D0=B0=D0=B4=D0=BE=20?= =?UTF-8?q?=D0=B4=D0=BE=D0=BF=D0=B8=D0=BB=D0=B8=D0=B2=D0=B0=D1=82=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Installer/BIOS.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Installer/BIOS.lua b/Installer/BIOS.lua index 3c3b9570..f5788a6d 100644 --- a/Installer/BIOS.lua +++ b/Installer/BIOS.lua @@ -11,7 +11,13 @@ while true do end handle.close() -local success,reason=xpcall(load(data),debug.traceback) -if not success then - error(reason) + +local result, reason = load(data, "=installer") +if result then + result, reason = xpcall(result, debug.traceback) + if not result then + error(reason) + end +else + error(reason) end