X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_ca.h;h=d0984fd6bb43f31c464132d089b4dc072633ec7a;hb=03ca86f3098c71ab03a9b4fd45959d109158c6b1;hp=b752bae52eb8d782bc8c403de284fad56f14e15b;hpb=5d9c75b35df6e7fa69897355e86b206e186d73be;p=16.git diff --git a/src/lib/16_ca.h b/src/lib/16_ca.h old mode 100644 new mode 100755 index b752bae5..d0984fd6 --- a/src/lib/16_ca.h +++ b/src/lib/16_ca.h @@ -20,10 +20,6 @@ #ifndef __16_CA__ #define __16_CA__ -#include -#include -#include - #ifndef __16_MM__ #include "src/lib/16_head.h" #include "src/lib/16_mm.h" @@ -41,6 +37,7 @@ //#define NUMMAPS 39 //#define MAPPLANES 3 +#define PROFILE //=========================================================================== @@ -65,9 +62,9 @@ extern void _seg *grsegs[NUMCHUNKS]; extern byte far grneeded[NUMCHUNKS]; extern byte ca_levelbit,ca_levelnum; -extern char *titleptr[8]; +extern char *titleptr[8];*/ -extern int profilehandle,debughandle;*/ +//extern // // hooks for custom cache dialogs @@ -84,10 +81,11 @@ extern void (*finishcachebox) (void); //=========================================================================== -void CA_OpenDebug (void); -void CA_CloseDebug (void); +void CA_OpenDebug (global_game_variables_t *gvar); +void CA_CloseDebug (global_game_variables_t *gvar); boolean CA_FarRead (int handle, byte huge *dest, dword length, mminfo_t *mm); boolean CA_FarWrite (int handle, byte huge *source, dword length, mminfo_t *mm); + boolean CA_ReadFile (char *filename, memptr *ptr, mminfo_t *mm); boolean CA_LoadFile (char *filename, memptr *ptr, mminfo_t *mm, mminfotype *mmi); @@ -95,8 +93,8 @@ boolean CA_LoadFile (char *filename, memptr *ptr, mminfo_t *mm, mminfotype *mmi) //void CA_RLEWexpand (unsigned huge *source, unsigned huge *dest,long length,unsigned rlewtag); -void CA_Startup (void); -void CA_Shutdown (void); +void CA_Startup (global_game_variables_t *gvar); +void CA_Shutdown (global_game_variables_t *gvar); //void CA_CacheAudioChunk (int chunk); //void CA_LoadAllSounds (void);