shortened line

This commit is contained in:
Harrison Deng 2018-12-09 17:21:15 -06:00
parent e8fa308bd9
commit 07e172d913

View File

@ -99,8 +99,7 @@ namespace RecrownedAthenaeum.Audio
{ {
string extensionType = Path.GetExtension(files[fileID]).ToUpper().Substring(1); string extensionType = Path.GetExtension(files[fileID]).ToUpper().Substring(1);
SupportedFormats format; SupportedFormats format;
bool supported = Enum.TryParse<SupportedFormats>(extensionType, out format); if (Enum.TryParse<SupportedFormats>(extensionType, out format))
if (supported)
{ {
musicFiles.Add(files[fileID]); musicFiles.Add(files[fileID]);
Debug.WriteLine("Music file found: " + files[fileID], GetType().Name); Debug.WriteLine("Music file found: " + files[fileID], GetType().Name);