shortened line
This commit is contained in:
parent
e8fa308bd9
commit
07e172d913
@ -99,8 +99,7 @@ namespace RecrownedAthenaeum.Audio
|
||||
{
|
||||
string extensionType = Path.GetExtension(files[fileID]).ToUpper().Substring(1);
|
||||
SupportedFormats format;
|
||||
bool supported = Enum.TryParse<SupportedFormats>(extensionType, out format);
|
||||
if (supported)
|
||||
if (Enum.TryParse<SupportedFormats>(extensionType, out format))
|
||||
{
|
||||
musicFiles.Add(files[fileID]);
|
||||
Debug.WriteLine("Music file found: " + files[fileID], GetType().Name);
|
||||
|
Loading…
Reference in New Issue
Block a user