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);
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user