From d601ba34886b1df5b4a548d31686b6231ab1333c Mon Sep 17 00:00:00 2001 From: ehouse Date: Wed, 15 Feb 2006 13:09:36 +0000 Subject: [PATCH] provide sensible path for saved files on win32 so state can be preserved --- xwords4/wince/cemain.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/xwords4/wince/cemain.c b/xwords4/wince/cemain.c index 1003bc9b8..dfdc2abce 100755 --- a/xwords4/wince/cemain.c +++ b/xwords4/wince/cemain.c @@ -49,12 +49,17 @@ #include "debhacks.h" #define MAX_LOADSTRING 100 -/* #define PREFSFILENAME L"\\My Documents\\Personal\\.xwprefs" */ -/* #define UNSAVEDGAMEFILENAME "\\My Documents\\Personal\\_newgame" */ -#define DEFAULT_DIR_NAME L"\\My Documents\\Crosswords" -/* #define PREFSFILENAME L"\\My Documents\\Crosswords\\.xwprefs" */ -#define PREFSFILENAME L"\\My Documents\\Crosswords\\xwprefs" -#define UNSAVEDGAMEFILENAME "\\My Documents\\Crosswords\\_newgame" + +#ifdef _WIN32_WCE +# define DEFAULT_DIR_NAME L"\\My Documents\\Crosswords" +# define PREFSFILENAME L"\\My Documents\\Crosswords\\xwprefs" +# define UNSAVEDGAMEFILENAME "\\My Documents\\Crosswords\\_newgame" +#else +# define DEFAULT_DIR_NAME L"." +# define PREFSFILENAME L".\\xwprefs" +# define UNSAVEDGAMEFILENAME ".\\_newgame" +#endif + #define SCROLLBAR_WIDTH 12 #define SCROLLBARID 0x4321 /* needs to be unique! */