From f1b7f00d2a78ef417777f2a9ad903ef61a853cb0 Mon Sep 17 00:00:00 2001 From: Flameshadowxeroshin Date: Mon, 21 Nov 2011 03:02:03 +0000 Subject: [PATCH] i hate GetPath* --- Themes/_fallback/Scripts/03 ProductivityHelpers.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Themes/_fallback/Scripts/03 ProductivityHelpers.lua b/Themes/_fallback/Scripts/03 ProductivityHelpers.lua index 921d9b8ef4..02f10c3f49 100644 --- a/Themes/_fallback/Scripts/03 ProductivityHelpers.lua +++ b/Themes/_fallback/Scripts/03 ProductivityHelpers.lua @@ -114,6 +114,12 @@ 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 + function math.round(num, pre) if pre and pre < 0 then pre = 0 end local mult = 10^(pre or 0)