]> 4ch.mooo.com Git - 16.git/commitdiff
wwww
authorsparky4 <sparky4@cock.li>
Fri, 9 Sep 2016 19:49:49 +0000 (14:49 -0500)
committersparky4 <sparky4@cock.li>
Fri, 9 Sep 2016 19:49:49 +0000 (14:49 -0500)
16.BAK [new file with mode: 0755]
src/lib/16_ca.c
src/lib/16_mm.c

diff --git a/16.BAK b/16.BAK
new file mode 100755 (executable)
index 0000000..aee7ace
Binary files /dev/null and b/16.BAK differ
index 55dca2cd63f09aacf2f55ea9974a96e576510f60..27e2d7ee366c94c49a3e3187fbded08af6625ae6 100755 (executable)
@@ -437,7 +437,7 @@ boolean CA_LoadFile(char *filename, memptr *ptr, global_game_variables_t *gvar)
        if((handle = open(filename,O_RDONLY | O_BINARY, S_IREAD)) == -1)\r
                return false;\r
 \r
-       size = filelength (handle);\r
+       size = filelength(handle);\r
        MM_GetPtr(ptr,size, &(gvar->mm), &(gvar->mmi)); //TODO: gvar parameters\r
        if(!CA_FarRead(handle,*ptr,size, gvar))\r
        {\r
index e4a768332755e1c69d69454558fbf15b54b3e857..66271124c3b0b855b450314dfd423cec2afc7c86 100755 (executable)
@@ -962,9 +962,11 @@ void MM_GetPtr (memptr *baseptr, dword size, mminfo_t *mm, mminfotype *mmi)
        mm->mmnew->length = needed;
        mm->mmnew->useptr = baseptr;
        //if(mm->mmnew->useptr==NULL){
-       printf("baseptr=%04x    ", baseptr); printf("useptr=%04x\n", mm->mmnew->useptr);
-       printf("*baseptr=%04x   ", *baseptr); printf("*useptr=%04x\n", *(mm->mmnew->useptr));
-       //printf("*baseptr=%Fp  ", *baseptr); printf("*useptr=%Fp\n", *(mm->mmnew->useptr));
+#ifdef __DEBUG__
+               printf("baseptr=%04x    ", baseptr); printf("useptr=%04x\n", mm->mmnew->useptr);
+               printf("*baseptr=%04x   ", *baseptr); printf("*useptr=%04x\n", *(mm->mmnew->useptr));
+               printf("*baseptr=%Fp    ", *baseptr); printf("*useptr=%Fp\n", *(mm->mmnew->useptr));
+#endif
        //exit(-5); }
        mm->mmnew->attributes = BASEATTRIBUTES;