Navigation Menu

Skip to content

Commit

Permalink
Changing Music.Init so custom songs load.
Browse files Browse the repository at this point in the history
  • Loading branch information
MainMemory committed May 21, 2015
1 parent d3f34df commit bfd1583
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SonicBGScrollSaver/Music.cs
Expand Up @@ -47,13 +47,14 @@ internal static unsafe void Init()
songNums.Add(song, songCount++);
string dir = Environment.CurrentDirectory;
Environment.CurrentDirectory = Path.Combine(Environment.CurrentDirectory, "lib" + (IntPtr.Size == 8 ? "64" : "32"));
try { InitializeDriver(); }
try { SetVolume(1); }
catch
{
Environment.CurrentDirectory = dir;
return;
}
Environment.CurrentDirectory = dir;
InitializeDriver();
uint custcnt;
IntPtr* p = GetCustomSongs(out custcnt);
for (uint i = 0; i < custcnt; i++)
Expand Down

0 comments on commit bfd1583

Please sign in to comment.