[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src/missing _unistd.cpp,1.3,1.4 unistd.h,1.3,1.4

Chris Apers chrilith at users.sourceforge.net
Tue May 25 06:41:31 CEST 2004


Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src/missing
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2876

Modified Files:
	_unistd.cpp unistd.h 
Log Message:
Minor update

Index: _unistd.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/missing/_unistd.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- _unistd.cpp	6 Jan 2004 12:45:25 -0000	1.3
+++ _unistd.cpp	25 May 2004 13:39:50 -0000	1.4
@@ -21,16 +21,19 @@
  */
 
 #include "unistd.h"
-#include "extend.h"	// for SCUMMVM_SAVEPATH
 
+const Char *gUnistdCWD = NULL;
 
 // currently used only to retreive savepath
 Char *getcwd(Char *buf, UInt32 size) {
 	Char *copy = buf;
 	
-	if (!copy)
-		copy = (Char *)MemPtrNew(StrLen(SCUMMVM_SAVEPATH)); // this may never occured
-	
-	StrCopy(copy, SCUMMVM_SAVEPATH);
+	if (gUnistdCWD) {
+		if (!copy)
+			copy = (Char *)MemPtrNew(StrLen(gUnistdCWD)); // this may never occured
+
+		StrCopy(copy, gUnistdCWD);
+	}
+
 	return copy;
 }
\ No newline at end of file

Index: unistd.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/missing/unistd.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- unistd.h	6 Jan 2004 12:45:25 -0000	1.3
+++ unistd.h	25 May 2004 13:39:50 -0000	1.4
@@ -20,6 +20,13 @@
  *
  */
 
+#ifndef __UNISTD_H__
+#define __UNISTD_H__
+
 #include <PalmOS.h>
 
+extern const Char *gUnistdCWD;
+
 Char *getcwd(Char *buf, UInt32 size); 
+
+#endif
\ No newline at end of file





More information about the Scummvm-git-logs mailing list