X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_head.h;h=4a923a8c2c8873c72d05d825621707caeee69534;hb=6b585194480dbbfb1ca8ae9d4564418b24e79d48;hp=2bb380febd530be11f5f5c3ad862c457bbef9444;hpb=634cab2f93fbfecbfd035e1aadd6b396c5ad73a6;p=16.git diff --git a/src/lib/16_head.h b/src/lib/16_head.h index 2bb380fe..4a923a8c 100644 --- a/src/lib/16_head.h +++ b/src/lib/16_head.h @@ -36,7 +36,12 @@ #include // just for wait #include // just for wait #include +#include #include +#include +#include +#include +#include #include "src/lib/types.h" /* Control codes for all keys on the keyboard */ @@ -131,8 +136,9 @@ #define KEY_MENU (0x75) */ -//static dword far* clockdw= (dword far*) 0x046C; /* 18.2hz clock */ -static dword clockdw=0; +static dword far* clockdw= (dword far*) 0x046C; /* 18.2hz clock */ +//static dword clockdw=0; +extern int profilehandle,debughandle; //make it into game global #define nil ((void *)0) @@ -145,12 +151,24 @@ static dword clockdw=0; typedef union REGPACK regs_t; typedef enum {false,true} boolean; +//I hope this is correct! +//__self +typedef void __based(__self) * memptr; +typedef struct +{ + int old_mode; //old video mode before game! +} global_game_variables_t; +/* local function */ void wait(clock_t wait); void* AllocateLargestFreeBlock(size_t* Size); size_t GetFreeSize(void); +void far *AllocateLargestFarFreeBlock(size_t far* Size); +size_t GetFarFreeSize(void); long int filesize(FILE *fp); int US_CheckParm(char *parm,char **strings); -//void Quit(char *error, ...); + +extern void CA_OpenDebug (void); +extern void CA_CloseDebug (void); #endif/*_LIBHEAD_H_*/