From 9cd07fc6cb3ba543ea5be6ae39e85f6c28077ab4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 21 Aug 2007 20:29:28 +0000 Subject: [PATCH] fix string.upper is nil when theme changed --- stepmania/Themes/default/Scripts/00 init.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/stepmania/Themes/default/Scripts/00 init.lua b/stepmania/Themes/default/Scripts/00 init.lua index 3397ebb1f3..bbd44cb37b 100644 --- a/stepmania/Themes/default/Scripts/00 init.lua +++ b/stepmania/Themes/default/Scripts/00 init.lua @@ -1,10 +1,12 @@ -- This file is always executed first. -- Override Lua's upper and lower functions with our own, which is always UTF-8. -string.upper = Uppercase -string.lower = Lowercase -Uppercase = nil -- don't use directly -Lowercase = nil -- don't use directly +if Uppercase then + string.upper = Uppercase + string.lower = Lowercase + Uppercase = nil -- don't use directly + Lowercase = nil -- don't use directly +end Trace = lua.Trace Warn = lua.Warn