From bdbd456f1235a4f985c5026ea22d5d14cc1de671 Mon Sep 17 00:00:00 2001 From: sync-on-luma Date: Fri, 13 Sep 2024 07:31:21 -0700 Subject: [PATCH] Update neutrinoLauncherHDD.lua Fixed bug in favorites list --- XEBPLUS/APPS/neutrinoHDD/neutrinoLauncherHDD.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/XEBPLUS/APPS/neutrinoHDD/neutrinoLauncherHDD.lua b/XEBPLUS/APPS/neutrinoHDD/neutrinoLauncherHDD.lua index 76c4705..88c37ed 100644 --- a/XEBPLUS/APPS/neutrinoHDD/neutrinoLauncherHDD.lua +++ b/XEBPLUS/APPS/neutrinoHDD/neutrinoLauncherHDD.lua @@ -80,7 +80,7 @@ if System.doesFileExist("CFG/favorites.csv") then NEUTRINO_FavoritesList = (NEUTRINO_TempFile:read()) io.close(NEUTRINO_TempFile) else - NEUTRINO_FavoritsesList = "" + NEUTRINO_FavoritesList = "" end themeInUse[-90] = Graphics.loadImage(xebLua_AppWorkingPath.."image/bgfallback.png") @@ -666,13 +666,11 @@ for NEUTRINO_i = 1, 3 do NEUTRINO_ItemPosition=NEUTRINO_ItemPosition+1 end end - NEUTRINO_DebugLog("5") spinDisc() thmDrawBKGOL() Screen.waitVblankStart() oldpad = pad; Screen.flip() - NEUTRINO_DebugLog("6") end function NEUTRINO_UpdateFavorites() @@ -694,8 +692,8 @@ function NEUTRINO_UpdateFavorites() end if RemoveFavorite == true then NEUTRINO_LoadingText(neuLang[7]) - if NEUTRINO_NewFavorites == "" then - System.removeFile("CFG/favorites.csv") + if NEUTRINO_FavoritesTotal == 1 then + System.removeFile("mass:/XEBPLUS/CFG/favorites.csv") else NEUTRINO_TempFile = io.open("CFG/favorites.csv", "w") io.output(NEUTRINO_TempFile)