2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
2006-07-09 11:47:17 +00:00
|
|
|
*
|
|
|
|
* 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.
|
2010-07-05 16:11:11 +00:00
|
|
|
|
2006-07-09 11:47:17 +00:00
|
|
|
* 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.
|
2010-07-05 16:11:11 +00:00
|
|
|
|
2006-07-09 11:47:17 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2010-07-05 16:11:11 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
* $URL$
|
|
|
|
* $Id$
|
2006-07-09 11:47:17 +00:00
|
|
|
*
|
|
|
|
*/
|
2009-01-01 15:06:43 +00:00
|
|
|
|
2006-07-09 11:47:17 +00:00
|
|
|
#ifndef _PORTDEFS_H_
|
|
|
|
#define _PORTDEFS_H_
|
|
|
|
|
2010-07-05 16:11:34 +00:00
|
|
|
// Somebody removed these from scummsys.h, but they're still required, so I'm
|
|
|
|
// adding them here in the hope that they'll stay.
|
2007-04-06 18:34:53 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <math.h>
|
|
|
|
|
2007-10-13 15:40:11 +00:00
|
|
|
#define double float
|
2007-04-06 18:34:53 +00:00
|
|
|
|
2010-07-01 23:12:28 +00:00
|
|
|
#ifndef DISABLE_TEXT_CONSOLE
|
2009-03-19 09:51:40 +00:00
|
|
|
#define DISABLE_TEXT_CONSOLE
|
2010-07-01 23:12:28 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef DISABLE_COMMAND_LINE
|
2009-03-19 09:51:40 +00:00
|
|
|
#define DISABLE_COMMAND_LINE
|
2010-07-01 23:12:28 +00:00
|
|
|
#endif
|
2006-07-09 11:47:17 +00:00
|
|
|
|
2010-07-05 16:11:34 +00:00
|
|
|
#ifndef STREAM_AUDIO_FROM_DISK
|
2009-09-27 22:42:21 +00:00
|
|
|
#define STREAM_AUDIO_FROM_DISK
|
2010-07-01 23:12:28 +00:00
|
|
|
#endif
|
2009-09-27 22:42:21 +00:00
|
|
|
|
|
|
|
#define NO_DEBUG_MSGS
|
|
|
|
|
|
|
|
// This is defined in dsmain.cpp
|
2007-10-13 15:40:11 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2009-09-27 22:42:21 +00:00
|
|
|
void consolePrintf(const char *format, ...);
|
2007-10-13 15:40:11 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2007-04-06 18:34:53 +00:00
|
|
|
|
2009-03-19 09:51:40 +00:00
|
|
|
|
2007-04-06 18:34:53 +00:00
|
|
|
#ifdef assert
|
2006-07-09 11:47:17 +00:00
|
|
|
#undef assert
|
2007-04-06 18:34:53 +00:00
|
|
|
#endif
|
|
|
|
|
2010-07-05 16:11:34 +00:00
|
|
|
#define assert(s) \
|
|
|
|
do { \
|
|
|
|
if (!(s)) \
|
|
|
|
consolePrintf("Assertion failed: '##s##' at file %s, line %d\n", __FILE__, __LINE__); \
|
|
|
|
} while (0)
|
2007-04-06 18:34:53 +00:00
|
|
|
|
2007-10-13 15:40:11 +00:00
|
|
|
//#include "ds-fs.h"
|
2006-07-09 11:47:17 +00:00
|
|
|
|
|
|
|
//#define debug(fmt, ...) consolePrintf(fmt, ##__VA_ARGS__)
|
|
|
|
//#define debug(fmt, ...) debug(0, fmt, ##__VA_ARGS__)
|
|
|
|
|
2009-09-27 22:42:21 +00:00
|
|
|
// FIXME: Since I can't change the engine at the moment (post lockdown) this define can go here.
|
2009-01-01 15:06:43 +00:00
|
|
|
// This define changes the mouse-relative motion which doesn't make sense on a touch screen to
|
2008-09-15 22:43:20 +00:00
|
|
|
// a more conventional form of input where the menus can be clicked on.
|
|
|
|
#define LURE_CLICKABLE_MENUS
|
2007-04-06 18:34:53 +00:00
|
|
|
|
2006-07-09 11:47:17 +00:00
|
|
|
#endif
|