-fixed not working music playback from the plugin if no wiiflow

music folder with music is present
-changed version to beta 4.1.2 (whoops)
This commit is contained in:
fix94.1 2013-04-20 19:24:04 +00:00
parent 6e11e17230
commit 082d0ff8dd
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#define APP_NAME "WiiFlow"
#define APP_VERSION "Beta 4.1.1"
#define APP_VERSION "Beta 4.1.2"
#define APPDATA_DIR "wiiflow"
#define APPDATA_DIR2 "apps/wiiflow"

View File

@ -143,6 +143,13 @@ void Musicplayer::LoadCurrentFile()
void Musicplayer::LoadFile(const char *name, bool display_change)
{
if(FileNames.empty())
FileNames.push_back(PLUGIN_DOMAIN);
else if(FileNames.size() == 1 && strcmp(name, PLUGIN_DOMAIN) == 0)
{
Cleanup();
return;
}
MusicFile.Load(name);
SetVolume(CurrentVolume);
MusicFile.Play();