/* 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. * * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ #ifndef _PORTDEFS_H_ #define _PORTDEFS_H_ // Include ndstypes.h for uint16 etc. typedefs #include "nds/ndstypes.h" // 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 #include #include #include #include #include #include #define double float #ifndef DISABLE_COMMAND_LINE #define DISABLE_COMMAND_LINE #endif #ifndef STREAM_AUDIO_FROM_DISK #define STREAM_AUDIO_FROM_DISK #endif // FIXME: What is "NO_DEBUG_MSGS" good for? #define NO_DEBUG_MSGS // This is defined in dsmain.cpp #ifdef __cplusplus extern "C" { #endif void consolePrintf(const char *format, ...); #ifdef __cplusplus } #endif #ifdef assert #undef assert #endif #ifdef NDEBUG #define assert(e) ((void)0) #else // FIXME: Shouldn't assert() also bail out / exit / halt the program? Right now we just // print an error message... #define assert(s) \ do { \ if (!(s)) { \ consolePrintf("Assertion failed: '##s##' at file %s, line %d\n", __FILE__, __LINE__); \ } \ } while (0) #endif // FIXME: Since I can't change the engine at the moment (post lockdown) this define can go here. // This define changes the mouse-relative motion which doesn't make sense on a touch screen to // a more conventional form of input where the menus can be clicked on. #define LURE_CLICKABLE_MENUS #endif