diff options
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/sys.cpp | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/scumm/sys.cpp b/scumm/sys.cpp index 2369f53520..e8619a331e 100644 --- a/scumm/sys.cpp +++ b/scumm/sys.cpp @@ -162,33 +162,21 @@ uint32 Scumm::fileReadDwordBE(void *handle) return (b << 16) | a; } -bool Scumm::checkFixedDisk() +bool Scumm::checkFixedDisk() { return true; } #ifdef NEED_STRDUP -char *strdup(const char *s) -{ - if (s) { - int len = strlen(s) + 1; - char *d = (char *)malloc(len); - if (d) - memcpy(d, s, len); - return d; - } - return NULL; -} +char *strdup(const char *s); #endif /* NEED_STRDUP */ -void *operator new(size_t size) -{ +void *operator new(size_t size) { return calloc(size, 1); } -void operator delete(void *ptr) -{ +void operator delete(void *ptr) { free(ptr); } |