diff options
author | Max Horn | 2003-04-30 12:43:56 +0000 |
---|---|---|
committer | Max Horn | 2003-04-30 12:43:56 +0000 |
commit | 81c3ade33193a226cc835d2e1dc905732923bff0 (patch) | |
tree | a60f57b6086a2c27f65b9651e30c2602fa0355c3 /common/main.cpp | |
parent | 42f156ddada4c6f51e1612e9b0f18ec7c9dd9cee (diff) | |
download | scummvm-rg350-81c3ade33193a226cc835d2e1dc905732923bff0.tar.gz scummvm-rg350-81c3ade33193a226cc835d2e1dc905732923bff0.tar.bz2 scummvm-rg350-81c3ade33193a226cc835d2e1dc905732923bff0.zip |
more PalmOS changes
svn-id: r7220
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 |