mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 13:13:58 +00:00
Moved SAGA plugin interface code from saga.cpp to game.cpp
svn-id: r21181
This commit is contained in:
parent
6b988a51bd
commit
6db0289f30
@ -48,6 +48,48 @@
|
||||
#define IHNM_CONVERSE_TEXT_HEIGHT 10
|
||||
#define IHNM_CONVERSE_TEXT_LINES 10
|
||||
|
||||
namespace Saga {
|
||||
static DetectedGameList GAME_ProbeGame(const FSList &fslist, int **matches = NULL);
|
||||
}
|
||||
|
||||
static const PlainGameDescriptor saga_games[] = {
|
||||
{"ite", "Inherit the Earth: Quest for the Orb"},
|
||||
{"ihnm", "I Have No Mouth and I Must Scream"},
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
GameList Engine_SAGA_gameIDList() {
|
||||
GameList games;
|
||||
const PlainGameDescriptor *g = saga_games;
|
||||
|
||||
while (g->gameid) {
|
||||
games.push_back(*g);
|
||||
g++;
|
||||
}
|
||||
|
||||
return games;
|
||||
}
|
||||
|
||||
GameDescriptor Engine_SAGA_findGameID(const char *gameid) {
|
||||
const PlainGameDescriptor *g = saga_games;
|
||||
while (g->gameid) {
|
||||
if (0 == scumm_stricmp(gameid, g->gameid))
|
||||
break;
|
||||
g++;
|
||||
}
|
||||
return *g;
|
||||
}
|
||||
|
||||
DetectedGameList Engine_SAGA_detectGames(const FSList &fslist) {
|
||||
return Saga::GAME_ProbeGame(fslist);
|
||||
}
|
||||
|
||||
Engine *Engine_SAGA_create(GameDetector *detector, OSystem *syst) {
|
||||
return new Saga::SagaEngine(detector, syst);
|
||||
}
|
||||
|
||||
REGISTER_PLUGIN(SAGA, "SAGA Engine")
|
||||
|
||||
namespace Saga {
|
||||
|
||||
static int detectGame(const FSList &fslist, bool mode = false, int start = -1);
|
||||
|
@ -24,8 +24,6 @@
|
||||
#include "common/stdafx.h"
|
||||
|
||||
#include "base/gameDetector.h"
|
||||
#include "base/plugins.h"
|
||||
#include "backends/fs/fs.h"
|
||||
|
||||
#include "common/file.h"
|
||||
#include "common/config-manager.h"
|
||||
@ -56,44 +54,6 @@
|
||||
#include "saga/objectmap.h"
|
||||
#include "saga/resnames.h"
|
||||
|
||||
static const PlainGameDescriptor saga_games[] = {
|
||||
{"ite", "Inherit the Earth: Quest for the Orb"},
|
||||
{"ihnm", "I Have No Mouth and I Must Scream"},
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
GameList Engine_SAGA_gameIDList() {
|
||||
GameList games;
|
||||
const PlainGameDescriptor *g = saga_games;
|
||||
|
||||
while (g->gameid) {
|
||||
games.push_back(*g);
|
||||
g++;
|
||||
}
|
||||
|
||||
return games;
|
||||
}
|
||||
|
||||
GameDescriptor Engine_SAGA_findGameID(const char *gameid) {
|
||||
const PlainGameDescriptor *g = saga_games;
|
||||
while (g->gameid) {
|
||||
if (0 == scumm_stricmp(gameid, g->gameid))
|
||||
break;
|
||||
g++;
|
||||
}
|
||||
return *g;
|
||||
}
|
||||
|
||||
DetectedGameList Engine_SAGA_detectGames(const FSList &fslist) {
|
||||
return Saga::GAME_ProbeGame(fslist);
|
||||
}
|
||||
|
||||
Engine *Engine_SAGA_create(GameDetector *detector, OSystem *syst) {
|
||||
return new Saga::SagaEngine(detector, syst);
|
||||
}
|
||||
|
||||
REGISTER_PLUGIN(SAGA, "SAGA Engine")
|
||||
|
||||
namespace Saga {
|
||||
|
||||
#define MAX_TIME_DELTA 100
|
||||
|
@ -26,7 +26,6 @@
|
||||
#define SAGA_H
|
||||
|
||||
#include "base/engine.h"
|
||||
#include "base/plugins.h"
|
||||
|
||||
#include "common/stream.h"
|
||||
|
||||
@ -563,8 +562,6 @@ inline uint16 objectIndexToId(int type, int index) {
|
||||
}
|
||||
|
||||
|
||||
DetectedGameList GAME_ProbeGame(const FSList &fslist, int **matches = NULL);
|
||||
|
||||
class SagaEngine : public Engine {
|
||||
friend class Scene;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user