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.
|
2014-02-18 02:34:19 +01: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.
|
2014-02-18 02:34:19 +01: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.
|
|
|
|
*
|
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-31 22:42:42 +00:00
|
|
|
// Include ndstypes.h for uint16 etc. typedefs
|
|
|
|
#include "nds/ndstypes.h"
|
|
|
|
|
2020-05-29 20:05:02 +01:00
|
|
|
typedef unsigned int uint;
|
|
|
|
|
2011-05-31 13:48:03 +02:00
|
|
|
// Define SCUMMVM_DONT_DEFINE_TYPES to prevent scummsys.h from trying to
|
|
|
|
// re-define those data types.
|
|
|
|
#define SCUMMVM_DONT_DEFINE_TYPES
|
|
|
|
|
|
|
|
// Include required headers
|
2020-07-23 18:29:59 +01:00
|
|
|
#include <assert.h>
|
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>
|
2011-11-17 12:44:05 +01:00
|
|
|
#include <new>
|
2007-04-06 18:34:53 +00:00
|
|
|
|
2020-12-19 20:01:39 +00:00
|
|
|
#include <nds/arm9/sassert.h>
|
|
|
|
#undef assert
|
|
|
|
#define assert(e) sassert(e, " ")
|
|
|
|
|
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_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
|
|
|
|
|
|
|
// 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
|