]> 4ch.mooo.com Git - 16.git/commitdiff
wwww
authorsparky4 <sparky4@cock.li>
Sat, 27 Aug 2016 18:10:50 +0000 (13:10 -0500)
committersparky4 <sparky4@cock.li>
Sat, 27 Aug 2016 18:10:50 +0000 (13:10 -0500)
src/vrstest.c

index 903113aebbe92a0dcc4859e7e231658403a26e9f..9feb4c9bff5fce56d32b3dbe55fbb64230d3ce02 100755 (executable)
@@ -84,10 +84,10 @@ void main() {
        MM_Startup(&mm, &mmi);
        CA_Startup(&gvar);
        if(CA_LoadFile("data/spri/chikyuu.vrs", &bigbuffer, &mm, &mmi)) baka=1; else baka=0;
-       fd = open("data/spri/chikyuu.vrs", O_RDONLY|O_BINARY);
-       size = lseek(fd, 0, SEEK_END);
-       lseek(fd, 0, SEEK_SET);
-       close(fd);
+//     fd = open("data/spri/chikyuu.vrs", O_RDONLY|O_BINARY);
+//     size = lseek(fd, 0, SEEK_END);
+//     lseek(fd, 0, SEEK_SET);
+//     close(fd);
        // Insert sanity cheks later
        vrs.buffer = bigbuffer;
        vrs.data_size = size - sizeof(struct vrl1_vgax_header);
@@ -129,8 +129,7 @@ void main() {
        spri.y = 100;
 
 //     Uncomment to see broken sprites
-/*     sega = mm.bufferseg;
-       if(CA_LoadFile("data/spri/CHUBACW1.vrl", &bigbuffer, &mm, &mmi)) baka=1; else baka=0;*/
+       //if(CA_LoadFile("data/spri/CHUBACW1.vrl", &bbuffer, &mm, &mmi)) baka=1; else baka=0;
 
        /* clear and draw one sprite and one bitmap */
        VGAmodeX(1, 1, &gvar);