Hooks for Dreamcast OSystem.

svn-id: r3968
This commit is contained in:
Marcus Comstedt 2002-04-16 23:24:59 +00:00
parent 4442846ff8
commit 15a129391b
2 changed files with 11 additions and 0 deletions

View file

@ -355,7 +355,12 @@ int GameDetector::detectMain(int argc, char **argv)
_midi_driver = MD_AUTO;
#ifdef __DC__
extern int dc_setup(GameDetector &detector);
dc_setup(*this);
#else
parseCommandLine(argc, argv);
#endif
if (_exe_name == NULL) {
//launcherLoop();
@ -392,6 +397,10 @@ OSystem *GameDetector::createSystem() {
#endif
/* auto is to use SDL */
switch(_gfx_driver) {
#ifdef __DC__
case GD_AUTO:
return OSystem_Dreamcast_create();
#else
case GD_SDL:
case GD_AUTO:
#if !defined(__MORPHOS__)
@ -413,6 +422,7 @@ OSystem *GameDetector::createSystem() {
case GD_NULL:
return OSystem_NULL_create();
#endif
}
error("Invalid graphics driver");

View file

@ -120,6 +120,7 @@ public:
OSystem *OSystem_SDL_create(int gfx_driver, bool full_screen);
OSystem *OSystem_NULL_create();
OSystem *OSystem_MorphOS_create(int game_id, int gfx_driver, bool full_screen);
OSystem *OSystem_Dreamcast_create();
enum {
GFX_NORMAL = 0,