mirror of https://github.com/AxioDL/amuse.git
Add failsafe and .song extension
This commit is contained in:
parent
56f1bf7bff
commit
40e808e134
|
@ -664,7 +664,7 @@ struct AppCallback : boo::IApplicationCallback
|
|||
else
|
||||
Log.report(logvisor::Fatal, "unable to find Song %d", userSel);
|
||||
}
|
||||
else
|
||||
else if (songs.size() == 1)
|
||||
{
|
||||
m_arrData = &songs[0].second;
|
||||
m_groupId = m_arrData->m_groupId;
|
||||
|
|
|
@ -107,7 +107,8 @@ static bool IsSongExtension(const char* path, const char*& dotOut)
|
|||
if (ext)
|
||||
{
|
||||
if (!CompareCaseInsensitive(ext, ".son") ||
|
||||
!CompareCaseInsensitive(ext, ".sng"))
|
||||
!CompareCaseInsensitive(ext, ".sng") ||
|
||||
!CompareCaseInsensitive(ext, ".song"))
|
||||
{
|
||||
dotOut = ext;
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue