+{\r
+ //screen = modexDefaultPage();\r
+ engi_stat = ENGI_RUN;\r
+ //textInit();\r
+\r
+ /* save the palette */\r
+ dpal = modexNewPal();\r
+ modexPalSave(dpal);\r
+ modexFadeOff(4, dpal);\r
+ //printf("pal load\n");\r
+ //gpal = modexNewPal();\r
+ /*modexPalSave(gpal);\r
+ modexSavePalFile("data/g.pal", gpal);*/\r
+ printf("wwww loop wwww\n");\r
+ VGAmodeX(1, 1, &gvar);\r
+ modexPalBlack(); //so player will not see loadings~\r
+ IN_Startup();\r
+ IN_Default(0,&player,ctrl_Joystick);\r
+ //modexprint(&screen, 32, 32, 1, 2, 0, "a", 1);\r
+ while(ENGI_EXIT != engi_stat)\r
+ {\r
+ IN_ReadControl(0,&player);\r
+ if(IN_KeyDown(sc_Escape)) engi_stat = ENGI_EXIT;\r
+ }\r
+ switch(detectcpu())\r
+ {\r
+ case 0: cpus = "8086/8088 or 186/88"; break;\r
+ case 1: cpus = "286"; break;\r
+ case 2: cpus = "386 or newer"; break;\r
+ default: cpus = "internal error"; break;\r
+ }\r
+ VGAmodeX(0, 1, &gvar);\r
+ printf("Project 16 16.exe. This is supposed to be the actual finished game executable!\n");\r
+ printf("version %s\n", VERSION);\r
+ printf("detected CPU type: %s\n", cpus);\r
+ IN_Shutdown();\r
+ modexFadeOn(4, dpal);\r
+}\r