]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_head.h
palette utilities made ^^
[16.git] / src / lib / 16_head.h
old mode 100644 (file)
new mode 100755 (executable)
index 665c4fb..bc25498
 #include "src/lib/nyan/kitten.h"\r
 #include "src/lib/types.h"\r
 \r
-//0000 test type def wwww\r
-/*struct list {\r
-       struct list __based(__self) *next;\r
-       int         value;\r
-};*/\r
+#define VERSION __DATE__ " " __TIME__\r
 \r
 /* Control codes for all keys on the keyboard */\r
 //here temperarly\r
 #define KEY_MENU               (0x75)\r
 */\r
 \r
-static dword far* clockdw= (dword far*) 0x046C; /* 18.2hz clock */\r
+static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */\r
 extern int                     profilehandle,debughandle;      //make it into game global\r
 \r
 #define __DEBUG__\r
@@ -179,18 +175,27 @@ typedef void _seg * memptr;
 \r
 typedef struct\r
 {\r
+//     int showmemhandle;\r
        int                     profilehandle,debughandle;\r
        int heaphandle;\r
 } handle_t;\r
 \r
 typedef struct\r
 {\r
-       int old_mode;   //old video mode before game!\r
        word frames_per_second;\r
        clock_t t;\r
-       dword tiku;\r
-       word far* clock;\r
+       dword tiku;             //frames passed\r
+       word clock_start;       //timer start\r
+       word *clock;    //current time on clock\r
+       boolean fpscap; //cap the fps var\r
+} kurokku_t;\r
+\r
+typedef struct\r
+{\r
+       int old_mode;   //old video mode before game!\r
+       byte *pee;              // message for fps\r
        handle_t handle;        //handles for file logging\r
+       kurokku_t kurokku;      //clock struct\r
 } global_game_variables_t;\r
 \r
 /* local function */\r
@@ -200,7 +205,4 @@ long int filesize(FILE *fp);
 void printmeminfoline(byte *strc, const byte *pee, size_t h_total, size_t h_used, size_t h_free);\r
 int US_CheckParm(char *parm,char **strings);\r
 \r
-extern void CA_OpenDebug (global_game_variables_t *gvar);\r
-extern void CA_CloseDebug (global_game_variables_t *gvar);\r
-\r
 #endif/*_LIBHEAD_H_*/\r