aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorChris Apers2004-05-25 13:39:50 +0000
committerChris Apers2004-05-25 13:39:50 +0000
commit662ead7dcc78e594bcdb2888927c7ebccc97cda6 (patch)
treee52325efe513c0bb7304d1cabacb7113a475ec82 /backends
parent2fd3e0ed8062f3b5748e5cbafbd5d3435fe725a0 (diff)
downloadscummvm-rg350-662ead7dcc78e594bcdb2888927c7ebccc97cda6.tar.gz
scummvm-rg350-662ead7dcc78e594bcdb2888927c7ebccc97cda6.tar.bz2
scummvm-rg350-662ead7dcc78e594bcdb2888927c7ebccc97cda6.zip
Minor update
svn-id: r13870
Diffstat (limited to 'backends')
-rw-r--r--backends/PalmOS/Src/missing/_unistd.cpp13
-rw-r--r--backends/PalmOS/Src/missing/unistd.h7
2 files changed, 15 insertions, 5 deletions
diff --git a/backends/PalmOS/Src/missing/_unistd.cpp b/backends/PalmOS/Src/missing/_unistd.cpp
index 98883cd686..ea83e1bb73 100644
--- a/backends/PalmOS/Src/missing/_unistd.cpp
+++ b/backends/PalmOS/Src/missing/_unistd.cpp
@@ -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
diff --git a/backends/PalmOS/Src/missing/unistd.h b/backends/PalmOS/Src/missing/unistd.h
index 480d7bbb85..be8d0d20c2 100644
--- a/backends/PalmOS/Src/missing/unistd.h
+++ b/backends/PalmOS/Src/missing/unistd.h
@@ -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