… | |
… | |
451 | for my $file (@$nondirs) { |
451 | for my $file (@$nondirs) { |
452 | if ($dir =~ /^music(?:\/|$)/) { |
452 | if ($dir =~ /^music(?:\/|$)/) { |
453 | push @res, [$path, $file, 3] # FT_MUSIC |
453 | push @res, [$path, $file, 3] # FT_MUSIC |
454 | if $file =~ /\.(ogg)$/; |
454 | if $file =~ /\.(ogg)$/; |
455 | |
455 | |
456 | } elsif ($dir =~ /^sounds(?:\/|$)/) { |
456 | } elsif ($dir =~ /^sound(?:\/|$)/) { |
457 | push @res, [$path, $file, 5] # FT_SOUND |
457 | push @res, [$path, $file, 5] # FT_SOUND |
458 | if $file =~ /\.(wav|ogg)$/; |
458 | if $file =~ /\.(wav|ogg)$/; |
459 | |
459 | |
460 | } elsif ($dir =~ /^res(?:\/|$)/) { |
460 | } elsif ($dir =~ /^res(?:\/|$)/) { |
461 | push @res, [$path, $file, 0] # FT_FACE |
461 | push @res, [$path, $file, 0] # FT_FACE |