X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2F16_ca.c;h=fc40735329ff3c65701d0b70139f9a5c5b3562f0;hb=019e5275fa20374f0dbef06caa32d948840e2b0b;hp=df722daeaa8fecd97faba02ecc7bd34ea07d1e41;hpb=5d9c75b35df6e7fa69897355e86b206e186d73be;p=16.git diff --git a/src/lib/16_ca.c b/src/lib/16_ca.c index df722dae..fc407353 100644 --- a/src/lib/16_ca.c +++ b/src/lib/16_ca.c @@ -74,9 +74,9 @@ byte _seg *audiosegs[NUMSNDCHUNKS]; void _seg *grsegs[NUMCHUNKS]; byte far grneeded[NUMCHUNKS]; -byte ca_levelbit,ca_levelnum; +byte ca_levelbit,ca_levelnum;*/ -int profilehandle,debughandle;*/ +int profilehandle,debughandle; void (*drawcachebox) (char *title, unsigned numcache); void (*updatecachebox) (void); @@ -173,17 +173,16 @@ long GRFILEPOS(int c) = ============================ */ -/*++++ void CA_OpenDebug(void) { - unlink("DEBUG.TXT"); - debughandle = open("DEBUG.TXT", O_CREAT | O_WRONLY | O_TEXT); + unlink("debug.txt"); + debughandle = open("debug.txt", O_CREAT | O_WRONLY | O_TEXT); } void CA_CloseDebug(void) { - close debughandle); -}*/ + close(debughandle); +} @@ -224,7 +223,7 @@ boolean CA_FarRead(int handle, byte huge *dest, dword length, mminfo_t *mm) //if(mm->EMSVer<0x40) if(length>0xfffflu) { - printf("pee\n"); + printf("File is a fat bakapee\n"); segm=(length%0xfffflu)-1; fat=segm*0xfffflu; length-=fat; @@ -280,7 +279,7 @@ boolean CA_FarWrite(int handle, byte huge *source, dword length, mminfo_t *mm) //if(mm->EMSVer<0x40) if(length>0xfffflu) { - printf("pee\n"); + printf("File is a fat bakapee\n"); segm=(length%0xfffflu)-1; fat=segm*0xfffflu; length-=fat;