Recognize files that begin with “mod.” as ProTracker modules.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 31 Jul 2012 11:38:01 +0000 (13:38 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 31 Jul 2012 11:38:01 +0000 (13:38 +0200)
src/main/java/net/pterodactylus/demoscenemusic/utils/AudioCodecs.java

index a543e30..0e0be82 100644 (file)
@@ -68,6 +68,9 @@ public class AudioCodecs {
                if (extension.equals("xm")) {
                        return codecDescriptions.get("ft2");
                }
+               if (filename.toLowerCase().startsWith("mod.")) {
+                       return codecDescriptions.get("mod");
+               }
                return null;
        }