From 81c3ade33193a226cc835d2e1dc905732923bff0 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 30 Apr 2003 12:43:56 +0000 Subject: more PalmOS changes svn-id: r7220 --- common/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'common/main.cpp') 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 -- cgit v1.2.3