//file name //\r
\r
gvar.mm.mmstarted=0;\r
+ pmdebug=0;\r
\r
//PRINTBB\r
if(argv[1]){ bakapee1 = argv[1];\r
}\r
//printf("main()=%Fp start MM\n", *argv[0]);\r
MM_Startup(&gvar);\r
-#ifdef __DEBUG_PM__\r
- PM_Startup(&gvar);\r
- //PM_CheckMainMem(&gvar);\r
- PM_UnlockMainMem(&gvar);\r
-#endif\r
+ if(pmdebug>0)\r
+ {\r
+ PM_Startup(&gvar);\r
+ PM_CheckMainMem(&gvar);\r
+ PM_UnlockMainMem(&gvar);\r
+ }\r
CA_Startup(&gvar);\r
// printf(" done!\n");\r
PRINTBB;\r
printf("bakapee1=%s\n", bakapee1);\r
printf("bakapee2=%s\n", bakapee2);\r
MM_FreePtr(&bigbuffer, &gvar);\r
-#ifdef __DEBUG_PM__\r
- PM_Shutdown(&gvar);\r
-#endif\r
+ if(pmdebug>0)\r
+ PM_Shutdown(&gvar);\r
CA_Shutdown(&gvar);\r
MM_Shutdown(&gvar);\r
free(bakapee1); free(bakapee2);\r
#include "src/lib/16_pm.h"\r
#pragma hdrstop\r
\r
+boolean pmdebug=0;\r
+\r
/*\r
// Main Mem specific variables\r
boolean MainPresent;\r
#include "src/lib/16_mm.h"\r
#include <dos.h>\r
\r
+extern boolean pmdebug;\r
+\r
/*// NOTE! PMPageSize must be an even divisor of EMSPageSize, and >= 1024\r
#define EMSPageSize 16384\r
#define EMSPageSizeSeg (EMSPageSize >> 4)\r
extern memptr PM_GetPageAddress(int pagenum, global_game_variables_t *gvar),\r
PM_GetPage(int pagenum, global_game_variables_t *gvar); // Use this one to cache page\r
\r
-//void PM_SetMainMemPurge(int level, global_game_variables_t *gvar);\r
+void PM_SetMainMemPurge(int level, global_game_variables_t *gvar);\r
#endif\r