diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/metadata/mod.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/apps/metadata/mod.c b/apps/metadata/mod.c index 9595729c0b..cbc9fc11f6 100644 --- a/apps/metadata/mod.c +++ b/apps/metadata/mod.c | |||
@@ -50,38 +50,38 @@ bool get_mod_metadata(int fd, struct mp3entry* id3) | |||
50 | return false; | 50 | return false; |
51 | 51 | ||
52 | /* Mod type checking based on MikMod */ | 52 | /* Mod type checking based on MikMod */ |
53 | /* Protracker and variants */ | 53 | /* Protracker and variants */ |
54 | if ((!memcmp(id, "M.K.", 4)) || (!memcmp(id, "M!K!", 4))) { | 54 | if ((!memcmp(id, "M.K.", 4)) || (!memcmp(id, "M!K!", 4))) { |
55 | is_mod_file = true; | 55 | is_mod_file = true; |
56 | } | 56 | } |
57 | 57 | ||
58 | /* Star Tracker */ | 58 | /* Star Tracker */ |
59 | if (((!memcmp(id, "FLT", 3)) || (!memcmp(id, "EXO", 3))) && | 59 | if (((!memcmp(id, "FLT", 3)) || (!memcmp(id, "EXO", 3))) && |
60 | (isdigit(id[3]))) { | 60 | (isdigit(id[3]))) { |
61 | char numchn = id[3] - '0'; | 61 | char numchn = id[3] - '0'; |
62 | if (numchn == 4 || numchn == 8) | 62 | if (numchn == 4 || numchn == 8) |
63 | is_mod_file = true; | 63 | is_mod_file = true; |
64 | } | 64 | } |
65 | 65 | ||
66 | /* Oktalyzer (Amiga) */ | 66 | /* Oktalyzer (Amiga) */ |
67 | if (!memcmp(id, "OKTA", 4)) { | 67 | if (!memcmp(id, "OKTA", 4)) { |
68 | is_mod_file = true; | 68 | is_mod_file = true; |
69 | } | 69 | } |
70 | 70 | ||
71 | /* Oktalyser (Atari) */ | 71 | /* Oktalyser (Atari) */ |
72 | if (!memcmp(id, "CD81", 4)) { | 72 | if (!memcmp(id, "CD81", 4)) { |
73 | is_mod_file = true; | 73 | is_mod_file = true; |
74 | } | 74 | } |
75 | 75 | ||
76 | /* Fasttracker */ | 76 | /* Fasttracker */ |
77 | if ((!memcmp(id + 1, "CHN", 3)) && (isdigit(id[0]))) { | 77 | if ((!memcmp(id + 1, "CHN", 3)) && (isdigit(id[0]))) { |
78 | is_mod_file = true; | 78 | is_mod_file = true; |
79 | } | 79 | } |
80 | /* Fasttracker or Taketracker */ | 80 | /* Fasttracker or Taketracker */ |
81 | if (((!memcmp(id + 2, "CH", 2)) || (!memcmp(id + 2, "CN", 2))) | 81 | if (((!memcmp(id + 2, "CH", 2)) || (!memcmp(id + 2, "CN", 2))) |
82 | && (isdigit(id[0])) && (isdigit(id[1]))) { | 82 | && (isdigit(id[0])) && (isdigit(id[1]))) { |
83 | is_mod_file = true; | 83 | is_mod_file = true; |
84 | } | 84 | } |
85 | 85 | ||
86 | /* Don't try to play if we can't find a known mod type | 86 | /* Don't try to play if we can't find a known mod type |
87 | * (there are mod files which have nothing to do with music) */ | 87 | * (there are mod files which have nothing to do with music) */ |