From 43af6abf05c5464d3ebc89235d7702e954fbc15b Mon Sep 17 00:00:00 2001 From: sparky4 Date: Fri, 9 Sep 2016 14:49:49 -0500 Subject: [PATCH] wwww --- 16.BAK | Bin 0 -> 1536 bytes src/lib/16_ca.c | 2 +- src/lib/16_mm.c | 8 +++++--- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100755 16.BAK diff --git a/16.BAK b/16.BAK new file mode 100755 index 0000000000000000000000000000000000000000..aee7ace5ebc8adf7aec93a1d87194660a5b9a933 GIT binary patch literal 1536 ncmezHmyv;mfq{`>6pY9a_y~;uQ7{?;ctb!Kuk5Jg5DozVmPrHl literal 0 HcmV?d00001 diff --git a/src/lib/16_ca.c b/src/lib/16_ca.c index 55dca2cd..27e2d7ee 100755 --- a/src/lib/16_ca.c +++ b/src/lib/16_ca.c @@ -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) return false; - size = filelength (handle); + size = filelength(handle); MM_GetPtr(ptr,size, &(gvar->mm), &(gvar->mmi)); //TODO: gvar parameters if(!CA_FarRead(handle,*ptr,size, gvar)) { diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index e4a76833..66271124 100755 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -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; -- 2.39.5