Add failsafe and .song extension

This commit is contained in:
Phillip Stephens 2016-05-31 15:40:09 -07:00
parent 56f1bf7bff
commit 40e808e134
2 changed files with 3 additions and 2 deletions

View File

@ -664,7 +664,7 @@ struct AppCallback : boo::IApplicationCallback
else else
Log.report(logvisor::Fatal, "unable to find Song %d", userSel); Log.report(logvisor::Fatal, "unable to find Song %d", userSel);
} }
else else if (songs.size() == 1)
{ {
m_arrData = &songs[0].second; m_arrData = &songs[0].second;
m_groupId = m_arrData->m_groupId; m_groupId = m_arrData->m_groupId;

View File

@ -107,7 +107,8 @@ static bool IsSongExtension(const char* path, const char*& dotOut)
if (ext) if (ext)
{ {
if (!CompareCaseInsensitive(ext, ".son") || if (!CompareCaseInsensitive(ext, ".son") ||
!CompareCaseInsensitive(ext, ".sng")) !CompareCaseInsensitive(ext, ".sng") ||
!CompareCaseInsensitive(ext, ".song"))
{ {
dotOut = ext; dotOut = ext;
return true; return true;