1# -*-python-*-
2# vim: set ts=4 sw=4 expandtab:
3# GemRB - Infinity Engine Emulator
4# Copyright (C) 2010 The GemRB Project
5#
6# This program is free software; you can redistribute it and/or
7# modify it under the terms of the GNU General Public License
8# as published by the Free Software Foundation; either version 2
9# of the License, or (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19#
20
21import GemRB
22from ie_restype import *
23from AutodetectCommon import CheckFiles
24
25files = (
26    ("START", "CHU", RES_CHU),
27    ("STARTPOS", "2DA", RES_2DA),
28    ("STARTARE", "2DA", RES_2DA),
29
30    ("EXPTABLE", "2DA", RES_2DA),
31    ("MUSIC", "2DA", RES_2DA),
32)
33
34files_how = (
35    ("CHMB1A1", "BAM", RES_BAM),
36    ("TRACKING", "2DA", RES_2DA),
37)
38
39if CheckFiles(files):
40    if CheckFiles(files_how):
41        GemRB.AddGameTypeHint ("how", 95)
42    else:
43        GemRB.AddGameTypeHint ("iwd", 90)
44
45
46