From 4a8db726a1af5a9641484fb358095bb6962bec95 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 31 Jul 2012 13:38:01 +0200 Subject: [PATCH] =?utf8?q?Recognize=20files=20that=20begin=20with=20?= =?utf8?q?=E2=80=9Cmod.=E2=80=9D=20as=20ProTracker=20modules.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/demoscenemusic/utils/AudioCodecs.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/pterodactylus/demoscenemusic/utils/AudioCodecs.java b/src/main/java/net/pterodactylus/demoscenemusic/utils/AudioCodecs.java index a543e30..0e0be82 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/utils/AudioCodecs.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/utils/AudioCodecs.java @@ -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; } -- 2.7.4