1 /*
2 * Schism Tracker - a cross-platform Impulse Tracker clone
3 * copyright (c) 2003-2005 Storlek <storlek@rigelseven.com>
4 * copyright (c) 2005-2008 Mrs. Brisby <mrs.brisby@nimh.org>
5 * copyright (c) 2009 Storlek & Mrs. Brisby
6 * copyright (c) 2010-2012 Storlek
7 * URL: http://schismtracker.org/
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */
23
24 #include "headers.h"
25 #include "fmt.h"
26
27 /* --------------------------------------------------------------------- */
28
fmt_ntk_read_info(dmoz_file_t * file,const uint8_t * data,size_t length)29 int fmt_ntk_read_info(dmoz_file_t *file, const uint8_t *data, size_t length)
30 {
31 if (!(length > 25 && memcmp(data, "TWNNSNG2", 8) == 0))
32 return 0;
33
34 file->description = "NoiseTrekker";
35 /*file->extension = str_dup("ntk");*/
36 file->title = strn_dup((const char *)data + 9, 15);
37 file->type = TYPE_MODULE_MOD; /* ??? */
38 return 1;
39 }
40