From 9beadf3e2c6f06f43259e48629598fe77c365797 Mon Sep 17 00:00:00 2001 From: Bottinator22 <59987380+Bottinator22@users.noreply.github.com> Date: Sun, 29 Dec 2024 12:23:26 -0800 Subject: [PATCH] oops since my hhcolour shader (which doesn't have any parameters) was the first one in the list, it didn't need to load any parameters, which hid a bug that caused errors if the first shader in the menu had parameters --- assets/opensb/interface/opensb/shaders/shaders.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/assets/opensb/interface/opensb/shaders/shaders.lua b/assets/opensb/interface/opensb/shaders/shaders.lua index 0c2d19c..f9b6a32 100644 --- a/assets/opensb/interface/opensb/shaders/shaders.lua +++ b/assets/opensb/interface/opensb/shaders/shaders.lua @@ -19,13 +19,6 @@ local widgetsToGroups = {} local allSettings = {} local shaderConfig -function displayed() - shaderConfig = root.getConfiguration("postProcessGroups") -end -function dismissed() - shaderConfig = nil -end - local function addGroupToList(data) local name = widget.addListItem(GROUP_LIST_WIDGET) widget.setText(fmt("%s.%s.button", GROUP_LIST_WIDGET, name), data.friendlyName) @@ -351,6 +344,7 @@ local function initCallbacks() end function init() + shaderConfig = root.getConfiguration("postProcessGroups") --log = chat and chat.addMessage or sb.logInfo widget.clearListItems(GROUP_LIST_WIDGET)