Skip to content

Commit 855ff55

Browse files
committed
扩展名排除
1 parent a174c48 commit 855ff55

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Plain Craft Launcher 2/Pages/PageSetup/PageSetupUI.xaml.vb

+2-3
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,8 @@ Refresh:
360360
Dim validMusicCount As Integer = 0
361361
For Each File In EnumerateFiles(Path & "PCL\Musics\")
362362
Try
363-
Using reader As New AudioFileReader(File.FullName)
364-
validMusicCount += 1
365-
End Using
363+
If {".ini", ".jpg", ".txt", ".cfg", ".lrc", ".db", ".png"}.Contains(File.Extension.ToLower) Then Continue For
364+
validMusicCount += 1
366365
Catch ex As Exception
367366
End Try
368367
Next

0 commit comments

Comments
 (0)