From: David ‘Bombe’ Roden Date: Tue, 31 Jul 2012 11:38:01 +0000 (+0200) Subject: Recognize files that begin with “mod.” as ProTracker modules. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4a8db726a1af5a9641484fb358095bb6962bec95;p=demoscenemusic.git Recognize files that begin with “mod.” as ProTracker modules. --- 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; }