diff --git a/stepmania/Themes/default/Scripts/Utilities.lua b/stepmania/Themes/default/Scripts/Utilities.lua index 7291fb7c38..e8c1570a27 100644 --- a/stepmania/Themes/default/Scripts/Utilities.lua +++ b/stepmania/Themes/default/Scripts/Utilities.lua @@ -97,6 +97,14 @@ function GetRandomSongBackground() return THEME:GetPathG("", "_blank") end +function GetSongBackground() + local Path = GAMESTATE:GetCurrentSong():GetBackgroundPath() + if not Path then + return THEME:GetPathG("Common","fallback background") + end + return Path +end + -- (c) 2005 Glenn Maynard, Chris Danford -- All rights reserved. --