dosbox-wii/include/dosbox.h

67 lines
1.7 KiB
C
Raw Normal View History

2009-05-02 23:03:37 +02:00
/*
2009-05-03 00:28:34 +02:00
* Copyright (C) 2002-2007 The DOSBox Team
2009-05-02 23:03:37 +02: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
2009-05-03 00:02:15 +02:00
* GNU General Public License for more details.
2009-05-02 23:03:37 +02:00
*
* 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-05-03 00:18:08 +02:00
#ifndef DOSBOX_DOSBOX_H
#define DOSBOX_DOSBOX_H
#include "config.h"
2009-05-02 23:03:37 +02:00
2009-05-03 00:28:34 +02:00
void E_Exit(const char * message,...) GCC_ATTRIBUTE( __format__(__printf__, 1, 2));
2009-05-02 23:03:37 +02:00
2009-05-02 23:20:05 +02:00
void MSG_Add(const char*,const char*); //add messages to the internal langaugefile
2009-05-03 00:18:08 +02:00
const char* MSG_Get(char const *); //get messages from the internal langaugafile
2009-05-02 23:03:37 +02:00
2009-05-02 23:20:05 +02:00
class Section;
2009-05-02 23:03:37 +02:00
typedef Bitu (LoopHandler)(void);
void DOSBOX_RunMachine();
void DOSBOX_SetLoop(LoopHandler * handler);
2009-05-02 23:12:18 +02:00
void DOSBOX_SetNormalLoop();
2009-05-02 23:03:37 +02:00
2009-05-02 23:20:05 +02:00
void DOSBOX_Init(void);
class Config;
extern Config * control;
2009-05-02 23:35:44 +02:00
2009-05-02 23:53:27 +02:00
enum MachineType {
MCH_HERC,
MCH_CGA,
MCH_TANDY,
2009-05-03 00:18:08 +02:00
MCH_PCJR,
2009-05-03 00:02:15 +02:00
MCH_VGA
2009-05-02 23:53:27 +02:00
};
2009-05-03 00:18:08 +02:00
enum SVGACards {
SVGA_None,
SVGA_S3Trio
};
extern SVGACards svgaCard;
2009-05-02 23:53:27 +02:00
extern MachineType machine;
2009-05-03 00:02:15 +02:00
extern bool SDLNetInited;
2009-05-02 23:53:27 +02:00
2009-05-03 00:18:08 +02:00
#define IS_TANDY_ARCH ((machine==MCH_TANDY) || (machine==MCH_PCJR))
#define TANDY_ARCH_CASE MCH_TANDY: case MCH_PCJR
#ifndef DOSBOX_LOGGING_H
2009-05-02 23:43:00 +02:00
#include "logging.h"
#endif // the logging system.
2009-05-02 23:20:05 +02:00
2009-05-03 00:18:08 +02:00
#endif /* DOSBOX_DOSBOX_H */