xwords/xwords4/wince/cesvdgms.h
ehouse 56cc76b913 Save games in different directory for debug version to prevent
crashing when opening wrong-format files.
2008-10-24 08:36:44 +00:00

51 lines
2 KiB
C

/* -*- fill-column: 77; c-basic-offset: 4; compile-command: "make TARGET_OS=wince DEBUG=TRUE" -*- */
/*
* Copyright 2008 by Eric House (xwords@eehouse.org). All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef _CESVDGMS_H_
#define _CESVDGMS_H_
#include "xptypes.h"
#include "cemain.h"
#ifdef _WIN32_WCE
# define DEFAULT_DIR_NAME L"\\My Documents\\" LCROSSWORDS_DIR
# define PREFSFILENAME L"\\My Documents\\" LCROSSWORDS_DIR L"\\xwprefs"
# define UNSAVEDGAMEFILENAME "\\My Documents\\" CROSSWORDS_DIR "\\_newgame"
#else
# define DEFAULT_DIR_NAME "\\tmp" CROSSWORDS_DIR
# define LDEFAULT_DIR_NAME L"\\tmp" LCROSSWORDS_DIR
# define PREFSFILENAME LDEFAULT_DIR_NAME L"\\xwprefs"
# define UNSAVEDGAMEFILENAME DEFAULT_DIR_NAME "\\_newgame"
#endif
#ifdef _WIN32_WCE
# define DEFAULT_DIR_NAME L"\\My Documents\\" LCROSSWORDS_DIR
/* # define PREFSFILENAME L"\\My Documents\\Crosswords\\xwprefs" */
/* # define UNSAVEDGAMEFILENAME "\\My Documents\\Crosswords\\_newgame" */
#else
/* # define DEFAULT_DIR_NAME L"." */
# define DEFAULT_DIR_NAME L"\\tmp"
#endif
XP_Bool ceSavedGamesDlg( CEAppGlobals* globals, const XP_UCHAR* curPath,
wchar_t* buf, XP_U16 buflen );
XP_Bool ceConfirmUniqueName( CEAppGlobals* globals, XP_U16 strId, wchar_t* buf,
XP_U16 buflen );
#endif