1 //-------------------------------------------------------------------------
2 /*
3 Copyright (C) 1997, 2005 - 3D Realms Entertainment
4 
5 This file is part of Shadow Warrior version 1.2
6 
7 Shadow Warrior is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2
10 of the License, or (at your option) any later version.
11 
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 
16 See the GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 
22 Original Source: 1997 - Frank Maddin and Jim Norwood
23 Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
24 */
25 //-------------------------------------------------------------------------
26 
27 #define CACHE_NONE          0       // don't use this - this is for ken
28 #define CACHE_LOCK_MAX      255
29 #define CACHE_LOCK_START    200
30 #define CACHE_UNLOCK_START  1
31 #define CACHE_UNLOCK_MAX    199
32 
33 #define CACHE_SOUND_PRECACHE 0
34 #define CACHE_SOUND_PLAY     1
35 
36 void SetupPreCache(void);
37 void PreCacheRange(short start_pic, short end_pic);
38 void DoTheCache(void);
39 void precache(void);
40 
41