From 8b82873eb4b53222aed085b335bbce6a04248cbb Mon Sep 17 00:00:00 2001 From: Flameshadowxeroshin Date: Fri, 7 Oct 2011 01:23:26 +0000 Subject: [PATCH] more scoring junk --- Themes/_fallback/Scripts/04 Scoring.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Themes/_fallback/Scripts/04 Scoring.lua b/Themes/_fallback/Scripts/04 Scoring.lua index a3e6f5d0b4..1d38c6db96 100644 --- a/Themes/_fallback/Scripts/04 Scoring.lua +++ b/Themes/_fallback/Scripts/04 Scoring.lua @@ -377,6 +377,7 @@ Scoring = r; function UserPrefScoringMode() local baseChoices = {} for k,v in pairs(Scoring) do table.insert(baseChoices,k) end + if next(baseChoices) == nil then UndocumentedFeature "No scoring modes available" end local t = { Name = "UserPrefScoringMode"; LayoutType = "ShowAllInRow"; @@ -391,7 +392,7 @@ function UserPrefScoringMode() for k,v in ipairs(baseChoices) do if v == theValue then list[k] = true success = true break end end; if success == false then list[1] = true end; else - WritePrefToFile("UserPrefScoringMode", 'DDR Extreme'); + WritePrefToFile("UserPrefScoringMode", baseChoices[1]); list[1] = true; end; end;