Minor update

svn-id: r13870
This commit is contained in:
Chris Apers 2004-05-25 13:39:50 +00:00
parent 2fd3e0ed80
commit 662ead7dcc
2 changed files with 15 additions and 5 deletions

View File

@ -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;
}

View File

@ -20,6 +20,13 @@
*
*/
#ifndef __UNISTD_H__
#define __UNISTD_H__
#include <PalmOS.h>
extern const Char *gUnistdCWD;
Char *getcwd(Char *buf, UInt32 size);
#endif