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.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*/
|
2009-01-01 15:06:43 +00:00
|
|
|
|
2006-07-09 11:47:17 +00:00
|
|
|
#ifndef _PORTDEFS_H_
|
|
|
|
#define _PORTDEFS_H_
|
|
|
|
|
2008-05-15 22:12:51 +00:00
|
|
|
|
|
|
|
|
2007-10-13 15:40:11 +00:00
|
|
|
/*
|
2006-07-09 11:47:17 +00:00
|
|
|
typedef unsigned char u8;
|
|
|
|
typedef signed char s8;
|
|
|
|
|
|
|
|
typedef unsigned short u16;
|
|
|
|
typedef signed short s16;
|
|
|
|
|
|
|
|
typedef unsigned int u32;
|
|
|
|
typedef signed int s32;
|
2007-10-13 15:40:11 +00:00
|
|
|
*/
|
|
|
|
|
2009-07-30 17:48:03 +00:00
|
|
|
#include "nds/ndstypes.h"
|
2006-07-09 11:47:17 +00:00
|
|
|
|
2009-03-19 09:51:40 +00:00
|
|
|
|
2007-04-06 18:34:53 +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.
|
|
|
|
#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
|
|
|
|
2006-11-03 23:16:29 +00:00
|
|
|
#define CT_NO_TRANSPARENCY
|
2007-04-06 18:34:53 +00:00
|
|
|
|
2009-03-19 09:51:40 +00:00
|
|
|
#define DISABLE_TEXT_CONSOLE
|
|
|
|
#define DISABLE_COMMAND_LINE
|
2006-07-09 11:47:17 +00:00
|
|
|
|
2007-10-13 15:40:11 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2008-11-20 13:46:59 +00:00
|
|
|
int consolePrintf(const char* s, ...);
|
2007-10-13 15:40:11 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2007-04-06 18:34:53 +00:00
|
|
|
|
|
|
|
//#undef assert
|
|
|
|
//#define assert(expr) consolePrintf("Asserted!")
|
|
|
|
#define NO_DEBUG_MSGS
|
|
|
|
|
2009-03-19 09:51:40 +00:00
|
|
|
#define consolePrintf iprintf
|
|
|
|
|
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
|
|
|
|
|
|
|
|
#define assert(s) if (!(s)) consolePrintf("Assertion failed: '##s##' at file %s, line %d\n", __FILE__, __LINE__)
|
|
|
|
|
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__)
|
|
|
|
|
2007-04-06 18:34:53 +00:00
|
|
|
#define ITCM_DATA __attribute__((section(".itcm")))
|
|
|
|
|
2008-09-15 22:43:20 +00:00
|
|
|
// 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
|