From: sparky4 <sparky4@cock.li>
Date: Thu, 2 Jul 2015 18:49:26 +0000 (-0500)
Subject: fat flag added for massive files
X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=9e11cc651bdf6982617734702644dd24956434a8;p=16.git

fat flag added for massive files
Signed-off-by: sparky4 <sparky4@cock.li>
---

diff --git a/exmmtest.exe b/exmmtest.exe
index f867f149..dc020028 100644
Binary files a/exmmtest.exe and b/exmmtest.exe differ
diff --git a/src/lib/16_ca.c b/src/lib/16_ca.c
index 05059724..49f9c1be 100644
--- a/src/lib/16_ca.c
+++ b/src/lib/16_ca.c
@@ -216,11 +216,12 @@ void CAL_GetGrChunkLength (int chunk)
 ==========================
 */
 
-boolean CA_FarRead (int handle, byte far *dest, dword length)
+boolean CA_FarRead (int handle, byte huge *dest, dword length)
 {
 	boolean flag;
-	if (length>0xffffl)
-		printf("CA_FarRead doesn't support 64K reads yet!\n");
+	boolean fat;
+	if (length>0xffffl) fat=true;
+//		printf("CA_FarRead doesn't support 64K reads yet!\n");
 
 	__asm
 	{
@@ -260,11 +261,12 @@ End:
 ==========================
 */
 
-boolean CA_FarWrite (int handle, byte far *source, dword length)
+boolean CA_FarWrite (int handle, byte huge *source, dword length)
 {
 	boolean flag;
-	if (length>0xffffl)
-		printf("CA_FarWrite doesn't support 64K reads yet!\n");
+	boolean fat;
+	if (length>0xffffl) fat=true;
+//		printf("CA_FarWrite doesn't support 64K reads yet!\n");
 
 	__asm
 	{
diff --git a/src/lib/16_ca.h b/src/lib/16_ca.h
index 87c90fba..d424b808 100644
--- a/src/lib/16_ca.h
+++ b/src/lib/16_ca.h
@@ -86,8 +86,8 @@ extern	void	(*finishcachebox)	(void);
 
 void CA_OpenDebug (void);
 void CA_CloseDebug (void);
-boolean CA_FarRead (int handle, byte far *dest, dword length);
-boolean CA_FarWrite (int handle, byte far *source, dword length);
+boolean CA_FarRead (int handle, byte huge *dest, dword length);
+boolean CA_FarWrite (int handle, byte huge *source, dword length);
 boolean CA_ReadFile (char *filename, memptr *ptr);
 boolean CA_LoadFile (char *filename, memptr *ptr, mminfo_t *mm, mminfotype *mmi);