Skip to content

Commit

Permalink
fix Select Music music updating
Browse files Browse the repository at this point in the history
it's remarkably fast over here, too.
  • Loading branch information
tertu-m committed Jun 5, 2017
1 parent ce00559 commit 093a4a5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
23 changes: 15 additions & 8 deletions DDR SN3/BGAnimations/ScreenTitleMenu underlay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,22 @@ local t = Def.ActorFrame{
};

--update the select music redir here...
local f = RageFileUtil.CreateRageFile()
local worked = f:Open(THEME:GetCurrentThemeDirectory().."/Sounds/ScreenSelectMusic music (loop).redir", 10)
if worked then
f:Write(GetMenuMusicPath("common",true))
f:Close()
elseif SN3Debug then
SCREENMAN:SystemMessage("Couldn't open select music redir")
if ThemePrefs.Get("MenuMusic") ~= CurrentMenuMusic then
if not CurrentMenuMusic then
CurrentMenuMusic = ThemePrefs.Get("MenuMusic")
else
local f = RageFileUtil.CreateRageFile()
local worked = f:Open(THEME:GetCurrentThemeDirectory().."/Sounds/ScreenSelectMusic music (loop).redir", 10)
if worked then
f:Write(GetMenuMusicPath("common",true))
f:Close()
elseif SN3Debug then
SCREENMAN:SystemMessage("Couldn't open select music redir")
end
f:destroy()
THEME:ReloadMetrics()
end
end
f:destroy()

t[#t+1] = Def.ActorFrame{
OnCommand=function(self)
Expand Down
1 change: 0 additions & 1 deletion DDR SN3/Sounds/ScreenSelectMusic music (loop).redir

This file was deleted.

0 comments on commit 093a4a5

Please sign in to comment.