diff --git a/Themes/_fallback/Scripts/02 Utilities.lua b/Themes/_fallback/Scripts/02 Utilities.lua index 9416026ee8..969caaa84d 100644 --- a/Themes/_fallback/Scripts/02 Utilities.lua +++ b/Themes/_fallback/Scripts/02 Utilities.lua @@ -311,6 +311,14 @@ function GetPlayerOrMachineProfile(pn) end; end; +function pname(pn) return ToEnumShortString(pn) end + +function ThemeManager:GetAbsolutePath(sPath) + sFinPath = "/Themes/"..self:GetCurThemeName().."/"..sPath + assert(RageFileManager.DoesFileExist(sFinPath), "the theme element "..sPath.." is missing") + return sFinPath +end + -- (c) 2005-2011 Glenn Maynard, Chris Danford, SSC -- All rights reserved. -- diff --git a/Themes/_fallback/Scripts/03 ProductivityHelpers.lua b/Themes/_fallback/Scripts/03 ProductivityHelpers.lua deleted file mode 100644 index 98c7337af5..0000000000 --- a/Themes/_fallback/Scripts/03 ProductivityHelpers.lua +++ /dev/null @@ -1,21 +0,0 @@ --- ProductivityHelpers: A set of useful aliases for theming. ---[[ 3.9 Functions ]] -Game = { - GetStage = function() - - end, -} - ---[[ ----------------------------------------------------------------------- ]] - ---[[ helper functions ]] -function pname(pn) return ToEnumShortString(pn) end - -function ThemeManager:GetAbsolutePath(sPath) - sFinPath = "/Themes/"..self:GetCurThemeName().."/"..sPath - assert(RageFileManager.DoesFileExist(sFinPath), "the theme element "..sPath.." is missing") - return sFinPath -end - ---[[ end helper functions ]] --- this code is in the public domain.