diff options
Diffstat (limited to 'common/main.cpp')
| -rw-r--r-- | common/main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common/main.cpp b/common/main.cpp index 9e0896f108..2765c849d4 100644 --- a/common/main.cpp +++ b/common/main.cpp @@ -160,6 +160,9 @@ int main(int argc, char *argv[]) { GetWindowsDirectory(scummhome, 256); strcat(scummhome, "\\"); strcat(scummhome, DEFAULT_CONFIG_FILE); + #elif defined(__PALM_OS__) + strcpy(scummhome,"/PALM/Programs/ScummVM/"); + strcat(scummhome, DEFAULT_CONFIG_FILE); #else strcpy(scummhome, DEFAULT_CONFIG_FILE); #endif @@ -225,10 +228,11 @@ int main(int argc, char *argv[]) { // ...and quit (the return 0 should never be reached) system->quit(); - + delete system; // palmos leaks return 0; } +#ifndef __PALM_OS__ void *operator new(size_t size) { return calloc(size, 1); } @@ -236,4 +240,4 @@ void *operator new(size_t size) { void operator delete(void *ptr) { free(ptr); } - +#endif |
