Hooks for Dreamcast OSystem.
svn-id: r3968
This commit is contained in:
parent
4442846ff8
commit
15a129391b
2 changed files with 11 additions and 0 deletions
|
@ -355,7 +355,12 @@ int GameDetector::detectMain(int argc, char **argv)
|
||||||
|
|
||||||
_midi_driver = MD_AUTO;
|
_midi_driver = MD_AUTO;
|
||||||
|
|
||||||
|
#ifdef __DC__
|
||||||
|
extern int dc_setup(GameDetector &detector);
|
||||||
|
dc_setup(*this);
|
||||||
|
#else
|
||||||
parseCommandLine(argc, argv);
|
parseCommandLine(argc, argv);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (_exe_name == NULL) {
|
if (_exe_name == NULL) {
|
||||||
//launcherLoop();
|
//launcherLoop();
|
||||||
|
@ -392,6 +397,10 @@ OSystem *GameDetector::createSystem() {
|
||||||
#endif
|
#endif
|
||||||
/* auto is to use SDL */
|
/* auto is to use SDL */
|
||||||
switch(_gfx_driver) {
|
switch(_gfx_driver) {
|
||||||
|
#ifdef __DC__
|
||||||
|
case GD_AUTO:
|
||||||
|
return OSystem_Dreamcast_create();
|
||||||
|
#else
|
||||||
case GD_SDL:
|
case GD_SDL:
|
||||||
case GD_AUTO:
|
case GD_AUTO:
|
||||||
#if !defined(__MORPHOS__)
|
#if !defined(__MORPHOS__)
|
||||||
|
@ -413,6 +422,7 @@ OSystem *GameDetector::createSystem() {
|
||||||
|
|
||||||
case GD_NULL:
|
case GD_NULL:
|
||||||
return OSystem_NULL_create();
|
return OSystem_NULL_create();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
error("Invalid graphics driver");
|
error("Invalid graphics driver");
|
||||||
|
|
1
system.h
1
system.h
|
@ -120,6 +120,7 @@ public:
|
||||||
OSystem *OSystem_SDL_create(int gfx_driver, bool full_screen);
|
OSystem *OSystem_SDL_create(int gfx_driver, bool full_screen);
|
||||||
OSystem *OSystem_NULL_create();
|
OSystem *OSystem_NULL_create();
|
||||||
OSystem *OSystem_MorphOS_create(int game_id, int gfx_driver, bool full_screen);
|
OSystem *OSystem_MorphOS_create(int game_id, int gfx_driver, bool full_screen);
|
||||||
|
OSystem *OSystem_Dreamcast_create();
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
GFX_NORMAL = 0,
|
GFX_NORMAL = 0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue