fix problem with SM erroring (nonfatal) when a song is played without a background
This commit is contained in:
@@ -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.
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user