From 7c799426a9c5d060b7cf7eef83b7cdcb869e6e12 Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Tue, 11 Apr 2023 23:12:22 +0200 Subject: [PATCH] Bugfix crash upon deleting non existant /sys directory --- Capy64/Assets/Lua/bios.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Capy64/Assets/Lua/bios.lua b/Capy64/Assets/Lua/bios.lua index 8730e6b..541278d 100644 --- a/Capy64/Assets/Lua/bios.lua +++ b/Capy64/Assets/Lua/bios.lua @@ -96,7 +96,9 @@ local function promptKey() end local function installDefaultOS() - fs.delete("/sys", true) + if fs.exists("/sys") then + fs.delete("/sys", true) + end installOS() end