- 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, &gvar);\r
- modexPalBlack(); //so player will not see loadings~\r
- IN_Startup();\r
- IN_Default(0,&player,ctrl_Joystick);\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
+ modexPalSave(gvar.video.dpal);\r
+ modexFadeOff(4, gvar.video.dpal);\r
+ modexPalSave(gvar.video.palette);\r
+ modexSavePalFile("data/g.pal", gvar.video.palette);\r
+ VGAmodeX(1, 1, &gvar);\r
+// modexPalBlack(); //so player will not see loadings~\r
+ IN_Default(0,&gvar.player[0],ctrl_Joystick, &gvar);\r
+ //modexprint(&screen, 32, 32, 1, 2, 0, "a", 1);\r
+ while(1)\r