1 /* Catacomb Apocalypse Source Code
\r
2 * Copyright (C) 1993-2014 Flat Rock Software
\r
4 * This program is free software; you can redistribute it and/or modify
\r
5 * it under the terms of the GNU General Public License as published by
\r
6 * the Free Software Foundation; either version 2 of the License, or
\r
7 * (at your option) any later version.
\r
9 * This program is distributed in the hope that it will be useful,
\r
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
12 * GNU General Public License for more details.
\r
14 * You should have received a copy of the GNU General Public License along
\r
15 * with this program; if not, write to the Free Software Foundation, Inc.,
\r
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
\r
25 #include <sys/stat.h>
\r
28 #include "src/lib/16_head.h"
\r
29 #include "src/lib/16_mm.h"
\r
32 //===========================================================================
\r
35 //#define NOGRAPHICS
\r
38 //#define MAPHEADERLINKED
\r
39 //#define GRHEADERLINKED
\r
40 //#define AUDIOHEADERLINKED
\r
42 //#define NUMMAPS 39
\r
43 //#define MAPPLANES 3
\r
45 //===========================================================================
\r
50 unsigned planelength[3];
\r
51 unsigned width,height;
\r
55 //===========================================================================
\r
57 /*extern byte _seg *tinf;
\r
60 extern unsigned _seg *mapsegs[3];
\r
61 extern maptype _seg *mapheaderseg[NUMMAPS];
\r
62 extern byte _seg *audiosegs[NUMSNDCHUNKS];
\r
63 extern void _seg *grsegs[NUMCHUNKS];
\r
65 extern byte far grneeded[NUMCHUNKS];
\r
66 extern byte ca_levelbit,ca_levelnum;
\r
68 extern char *titleptr[8];
\r
70 extern int profilehandle,debughandle;*/
\r
73 // hooks for custom cache dialogs
\r
75 extern void (*drawcachebox) (char *title, unsigned numcache);
\r
76 extern void (*updatecachebox) (void);
\r
77 extern void (*finishcachebox) (void);
\r
79 //===========================================================================
\r
81 // just for the score box reshifting
\r
83 //void CAL_ShiftSprite (unsigned segment,unsigned source,unsigned dest,unsigned width, unsigned height, unsigned pixshift, boolean domask);
\r
85 //===========================================================================
\r
87 void CA_OpenDebug (void);
\r
88 void CA_CloseDebug (void);
\r
89 boolean CA_FarRead (int handle, byte huge *dest, dword length, mminfo_t *mm);
\r
90 boolean CA_FarWrite (int handle, byte huge *source, dword length, mminfo_t *mm);
\r
91 boolean CA_ReadFile (char *filename, memptr *ptr, mminfo_t *mm);
\r
92 boolean CA_LoadFile (char *filename, memptr *ptr, mminfo_t *mm, mminfotype *mmi);
\r
94 //long CA_RLEWCompress (unsigned huge *source, long length, unsigned huge *dest,unsigned rlewtag);
\r
96 //void CA_RLEWexpand (unsigned huge *source, unsigned huge *dest,long length,unsigned rlewtag);
\r
98 void CA_Startup (void);
\r
99 void CA_Shutdown (void);
\r
101 //void CA_CacheAudioChunk (int chunk);
\r
102 //void CA_LoadAllSounds (void);
\r
104 /*void CA_UpLevel (void);
\r
105 void CA_DownLevel (void);
\r
107 void CA_SetAllPurge (void);
\r
109 void CA_ClearMarks (void);
\r
110 void CA_ClearAllMarks (void);
\r
112 #define CA_MarkGrChunk(chunk) grneeded[chunk]|=ca_levelbit
\r
114 void CA_CacheGrChunk (int chunk);
\r
115 void CA_CacheMap (int mapnum);
\r
117 void CA_CacheMarks (char *title);*/
\r