From c970cd1d5b5d068b222c27a23bbad65d52364817 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Sat, 27 Aug 2016 13:10:50 -0500 Subject: [PATCH] wwww --- src/vrstest.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/vrstest.c b/src/vrstest.c index 903113ae..9feb4c9b 100755 --- a/src/vrstest.c +++ b/src/vrstest.c @@ -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); -- 2.39.5