From 45431cd4012701253a87e6b022aedb950543d7ed Mon Sep 17 00:00:00 2001 From: MegaBitmap <93689649+MegaBitmap@users.noreply.github.com> Date: Fri, 11 Oct 2024 17:38:54 -0700 Subject: [PATCH] bugifx for saving settings make sure that the CFG/neutrinoLauncher folder exists before saving menu.cfg . This prevents a crash if someone tries to change settings before running neutrinoLauncher.lua --- XEBPLUS/APPS/neutrinoLauncher/settings.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/XEBPLUS/APPS/neutrinoLauncher/settings.lua b/XEBPLUS/APPS/neutrinoLauncher/settings.lua index 006126f..7a2c2d7 100755 --- a/XEBPLUS/APPS/neutrinoLauncher/settings.lua +++ b/XEBPLUS/APPS/neutrinoLauncher/settings.lua @@ -295,6 +295,9 @@ ContextMenu_NewSettings = ContextMenu_NewSettings..ContextMenu_DisableFade ContextMenu_NewSettings = ContextMenu_NewSettings..ContextMenu_DisableAnim ContextMenu_NewSettings = ContextMenu_NewSettings..ContextMenu_ShowTitleId ContextMenu_NewSettings = ContextMenu_NewSettings..ContextMenu_ShowMedia +if not System.doesDirectoryExist("mass:/XEBPLUS/CFG/neutrinoLauncher") then + System.createDirectory("mass:/XEBPLUS/CFG/neutrinoLauncher") +end if ContextMenu_NewSettings == "" then System.removeFile(System.currentDirectory().."CFG/neutrinoLauncher/menu.cfg") else