]> 4ch.mooo.com Git - 16.git/blobdiff - src/1croll.c
i did a butt load of tweaking to the paltest code and i did verious fixes here and...
[16.git] / src / 1croll.c
index 488688090ef03b742510412a7f2e02536c928277..a4ebb87df3e7d80b899e9a8195f664996dee0dac 100755 (executable)
@@ -1,8 +1,8 @@
-#include "src\lib\modex16.h"\r
+#include "16/modex16/modex16.h"\r
 #include <stdio.h>\r
 #include <stdlib.h>\r
-#include "src\lib\dos_kb.h"\r
-#include "src\lib\wtest\wtest.c"\r
+#include "16/modex16/dos_kb.h"\r
+//#include "src/lib/wtest/wtest.h"\r
 \r
 //word far *clock= (word far*) 0x046C; /* 18.2hz clock */\r
 \r
@@ -69,7 +69,7 @@ void animatePlayer(map_view_t *src, map_view_t *dest, /*map_view_t *top, */short
 void main() {\r
        bitmap_t ptmp; // player sprite\r
        word q=1;\r
-       const char *cpus;\r
+//++++ const char *cpus;\r
        static int persist_aniframe = 0;    /* gonna be increased to 1 before being used, so 0 is ok for default */\r
        page_t screen, screen2, screen3;\r
        map_t map;\r
@@ -87,7 +87,7 @@ void main() {
        /* draw the tiles */\r
        ptr = map.data;\r
        /*data\\*/\r
-       ptmp = bitmapLoadPcx("ptmp.pcx"); // load sprite\r
+       ptmp = bitmapLoadPcx("data/chikyuu.pcx"); // load sprite\r
        setkb(1);\r
        modexEnter();\r
        modexPalUpdate(ptmp.palette);\r
@@ -343,6 +343,8 @@ break;
        printf("temporary player sprite 0: http://www.pixiv.net/member_illust.php?mode=medium&illust_id=45556867\n");\r
        printf("temporary player sprite 1: http://www.pixiv.net/member_illust.php?mode=medium&illust_id=44606385\n");\r
        printf("\n");\r
+#if 0\r
+       //++++\r
        switch(detectcpu())\r
        {\r
                case 0: cpus = "8086/8088 or 186/88"; break;\r
@@ -351,6 +353,7 @@ break;
                default: cpus = "internal error"; break;\r
        }\r
        printf("detected CPU type: %s\n", cpus);\r
+#endif\r
 }\r
 \r
 \r
@@ -611,5 +614,5 @@ animatePlayer(map_view_t *src, map_view_t *dest, /*map_view_t *top, */short d1,
        //modexClearRegion(top->page, 66, 66, 2, 40, 0);\r
        //modexCopyPageRegion(dest->page, top->page, 66, 66, 66, 66, 2, 40);\r
        //turn this off if XT\r
-       if(detectcpu() > 0) modexWaitBorder();\r
+//++++ if(detectcpu() > 0) modexWaitBorder();\r
 }\r