mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 15:48:48 +00:00
MORTEVIELLE: Added stub engine implementation. Engine is now compilable.
This commit is contained in:
parent
09928318f5
commit
0766140a4e
70
engines/mortevielle/detection.cpp
Normal file
70
engines/mortevielle/detection.cpp
Normal file
@ -0,0 +1,70 @@
|
||||
/* 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.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "base/plugins.h"
|
||||
#include "engines/advancedDetector.h"
|
||||
|
||||
#include "mortevielle/mortevielle.h"
|
||||
#include "mortevielle/detection_tables.h"
|
||||
|
||||
namespace Mortevielle {
|
||||
uint32 MortevielleEngine::getGameFlags() const { return _gameDescription->flags; }
|
||||
}
|
||||
|
||||
static const PlainGameDescriptor MortevielleGame[] = {
|
||||
{"mortevielle", "Mortville Manor"},
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
class MortevielleMetaEngine : public AdvancedMetaEngine {
|
||||
public:
|
||||
MortevielleMetaEngine() : AdvancedMetaEngine(Mortevielle::gameDescriptions, sizeof(ADGameDescription),
|
||||
MortevielleGame) {
|
||||
}
|
||||
virtual const char *getName() const {
|
||||
return "Mortevielle";
|
||||
}
|
||||
|
||||
virtual const char *getOriginalCopyright() const {
|
||||
return "Mortville Manor (C) 1988 Lankhor";
|
||||
}
|
||||
|
||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||
};
|
||||
|
||||
bool MortevielleMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
|
||||
if (desc) {
|
||||
*engine = new Mortevielle::MortevielleEngine(syst, desc);
|
||||
}
|
||||
return desc != 0;
|
||||
}
|
||||
|
||||
bool MortevielleMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
#if PLUGIN_ENABLED_DYNAMIC(MORTEVIELLE)
|
||||
REGISTER_PLUGIN_DYNAMIC(MORTEVIELLE, PLUGIN_TYPE_ENGINE, MortevielleMetaEngine);
|
||||
#else
|
||||
REGISTER_PLUGIN_STATIC(MORTEVIELLE, PLUGIN_TYPE_ENGINE, MortevielleMetaEngine);
|
||||
#endif
|
38
engines/mortevielle/detection_tables.h
Normal file
38
engines/mortevielle/detection_tables.h
Normal file
@ -0,0 +1,38 @@
|
||||
/* 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.
|
||||
*
|
||||
*/
|
||||
|
||||
namespace Mortevielle {
|
||||
|
||||
static const ADGameDescription gameDescriptions[] = {
|
||||
{
|
||||
"mortevielle",
|
||||
"",
|
||||
AD_ENTRY1s("mortvielle.txt", "d41d8cd98f00b204e9800998ecf8427e", 0),
|
||||
Common::FR_FRA,
|
||||
Common::kPlatformPC,
|
||||
ADGF_UNSTABLE,
|
||||
GUIO1(GUIO_NOASPECT)
|
||||
},
|
||||
AD_TABLE_END_MARKER
|
||||
};
|
||||
|
||||
} // End of namespace Mortevielle
|
@ -4,6 +4,7 @@ MODULE_OBJS := \
|
||||
actions.o \
|
||||
alert.o \
|
||||
boite.o \
|
||||
detection.o \
|
||||
disk.o \
|
||||
droite.o \
|
||||
keyboard.o \
|
||||
@ -12,6 +13,7 @@ MODULE_OBJS := \
|
||||
mor.o \
|
||||
mor2.o \
|
||||
mort.o \
|
||||
mortevielle.o \
|
||||
mouse.o \
|
||||
outtext.o \
|
||||
ovd1.o \
|
||||
|
@ -66,7 +66,7 @@ void divers(int np, bool b) {
|
||||
|
||||
/* NIVEAU 0 */
|
||||
|
||||
int main(int argc, const char *argv[]) {
|
||||
int mortevielle_main(int argc, const char *argv[]) {
|
||||
/*init_debug;*/
|
||||
/* ecri_seg;*/
|
||||
//pio_initialize(argc, argv);
|
||||
|
@ -32,7 +32,8 @@ namespace Mortevielle {
|
||||
|
||||
extern void divers(int np, bool b);
|
||||
/* NIVEAU 0 */
|
||||
extern int main(int argc, const char *argv[]);
|
||||
extern int mortevielle_main(int argc, const char *argv[]);
|
||||
|
||||
} // End of namespace Mortevielle
|
||||
|
||||
#endif
|
||||
|
47
engines/mortevielle/mortevielle.cpp
Normal file
47
engines/mortevielle/mortevielle.cpp
Normal file
@ -0,0 +1,47 @@
|
||||
/* 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.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "mortevielle/mortevielle.h"
|
||||
#include "mortevielle/mort.h"
|
||||
|
||||
namespace Mortevielle {
|
||||
|
||||
MortevielleEngine::MortevielleEngine(OSystem *system, const ADGameDescription *gameDesc):
|
||||
Engine(system), _gameDescription(gameDesc) {
|
||||
}
|
||||
|
||||
MortevielleEngine::~MortevielleEngine() {
|
||||
}
|
||||
|
||||
bool MortevielleEngine::hasFeature(EngineFeature f) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
Common::Error MortevielleEngine::run() {
|
||||
// Dispatch to the game's main routine
|
||||
const char *argv[] = { "" };
|
||||
mortevielle_main(1, argv);
|
||||
|
||||
return Common::kNoError;
|
||||
}
|
||||
|
||||
} // End of namespace Mortevielle
|
55
engines/mortevielle/mortevielle.h
Normal file
55
engines/mortevielle/mortevielle.h
Normal file
@ -0,0 +1,55 @@
|
||||
/* 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 MORTEVIELLE_H
|
||||
#define MORTEVIELLE_H
|
||||
|
||||
#include "engines/advancedDetector.h"
|
||||
#include "engines/engine.h"
|
||||
#include "common/error.h"
|
||||
|
||||
namespace Mortevielle {
|
||||
|
||||
enum {
|
||||
kMortevielleCore = 1 << 0
|
||||
};
|
||||
|
||||
#define SCREEN_WIDTH 320
|
||||
#define SCREEN_HEIGHT 200
|
||||
|
||||
class MortevielleEngine : public Engine {
|
||||
private:
|
||||
const ADGameDescription *_gameDescription;
|
||||
public:
|
||||
MortevielleEngine(OSystem *system, const ADGameDescription *gameDesc);
|
||||
~MortevielleEngine();
|
||||
virtual bool hasFeature(EngineFeature f) const;
|
||||
virtual Common::Error run();
|
||||
|
||||
uint32 getGameFlags() const;
|
||||
};
|
||||
|
||||
extern MortevielleEngine *g_vm;
|
||||
|
||||
} // End of namespace Mortevielle
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user