2017-05-31 18:49:03 +02:00
|
|
|
/* 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 "common/file.h"
|
2019-07-15 08:23:49 +02:00
|
|
|
#include "common/gui_options.h"
|
|
|
|
#include "common/translation.h"
|
2017-05-31 18:49:03 +02:00
|
|
|
#include "engines/advancedDetector.h"
|
|
|
|
|
2019-07-01 16:13:58 +02:00
|
|
|
#define GAMEOPTION_IMPROVED GUIO_GAMEOPTIONS1
|
|
|
|
|
2019-07-15 08:23:49 +02:00
|
|
|
static const ADExtraGuiOptionsMap optionsList[] = {
|
|
|
|
{
|
|
|
|
GAMEOPTION_IMPROVED,
|
|
|
|
{
|
|
|
|
_s("Improved mode"),
|
|
|
|
_s("Removes some repetitive actions, adds possibility to change verbs by keyboard"),
|
|
|
|
"improved",
|
2019-09-13 01:32:15 +01:00
|
|
|
true
|
2019-07-15 08:23:49 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
AD_EXTRA_GUI_OPTIONS_TERMINATOR
|
|
|
|
};
|
|
|
|
|
2017-05-31 18:49:03 +02:00
|
|
|
static const PlainGameDescriptor supernovaGames[] = {
|
2018-03-09 11:20:47 +01:00
|
|
|
{"msn1", "Mission Supernova 1"},
|
2019-06-21 22:30:43 +02:00
|
|
|
{"msn2", "Mission Supernova 2"},
|
2018-03-23 02:22:10 +01:00
|
|
|
{nullptr, nullptr}
|
2017-05-31 18:49:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
namespace Supernova {
|
|
|
|
static const ADGameDescription gameDescriptions[] = {
|
2017-10-31 09:17:42 +01:00
|
|
|
// Mission Supernova 1
|
2017-09-30 16:29:43 +01:00
|
|
|
{
|
|
|
|
"msn1",
|
2018-03-23 02:22:10 +01:00
|
|
|
nullptr,
|
2017-10-31 09:17:42 +01:00
|
|
|
AD_ENTRY1s("msn_data.000", "f64f16782a86211efa919fbae41e7568", 24163),
|
|
|
|
Common::DE_DEU,
|
|
|
|
Common::kPlatformDOS,
|
2019-10-02 23:35:02 +01:00
|
|
|
ADGF_NO_FLAGS,
|
2019-09-26 22:58:03 +02:00
|
|
|
GUIO2(GAMEOPTION_IMPROVED, GUIO_NOMIDI)
|
2019-07-01 16:13:58 +02:00
|
|
|
},
|
|
|
|
{
|
2019-07-15 08:23:49 +02:00
|
|
|
"msn1",
|
2019-07-01 16:13:58 +02:00
|
|
|
nullptr,
|
|
|
|
AD_ENTRY1s("msn_data.000", "f64f16782a86211efa919fbae41e7568", 24163),
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformDOS,
|
2019-10-02 23:35:02 +01:00
|
|
|
ADGF_NO_FLAGS,
|
2019-09-26 22:58:03 +02:00
|
|
|
GUIO2(GAMEOPTION_IMPROVED, GUIO_NOMIDI)
|
2019-07-01 16:13:58 +02:00
|
|
|
},
|
2020-09-07 02:07:15 +01:00
|
|
|
{
|
|
|
|
"msn1",
|
|
|
|
nullptr,
|
|
|
|
AD_ENTRY1s("msn_data.000", "f64f16782a86211efa919fbae41e7568", 24163),
|
|
|
|
Common::IT_ITA,
|
|
|
|
Common::kPlatformDOS,
|
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO2(GAMEOPTION_IMPROVED, GUIO_NOMIDI)
|
|
|
|
},
|
2019-06-21 22:30:43 +02:00
|
|
|
// Mission Supernova 2
|
|
|
|
{
|
|
|
|
"msn2",
|
|
|
|
nullptr,
|
|
|
|
AD_ENTRY1s("ms2_data.000", "e595610cba4a6d24a763e428d05cc83f", 24805),
|
|
|
|
Common::DE_DEU,
|
|
|
|
Common::kPlatformDOS,
|
2019-10-02 23:35:02 +01:00
|
|
|
ADGF_NO_FLAGS,
|
2019-09-26 22:58:03 +02:00
|
|
|
GUIO2(GAMEOPTION_IMPROVED, GUIO_NOMIDI)
|
2019-07-01 16:13:58 +02:00
|
|
|
},
|
|
|
|
{
|
2019-07-15 08:23:49 +02:00
|
|
|
"msn2",
|
2019-07-01 16:13:58 +02:00
|
|
|
nullptr,
|
|
|
|
AD_ENTRY1s("ms2_data.000", "e595610cba4a6d24a763e428d05cc83f", 24805),
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformDOS,
|
2019-10-02 23:35:02 +01:00
|
|
|
ADGF_NO_FLAGS,
|
2019-09-26 22:58:03 +02:00
|
|
|
GUIO2(GAMEOPTION_IMPROVED, GUIO_NOMIDI)
|
2019-07-01 16:13:58 +02:00
|
|
|
},
|
2017-10-31 09:17:42 +01:00
|
|
|
AD_TABLE_END_MARKER
|
2017-05-31 18:49:03 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2020-10-02 12:25:08 +05:30
|
|
|
class SupernovaMetaEngineStatic: public AdvancedMetaEngineStatic {
|
2017-05-31 18:49:03 +02:00
|
|
|
public:
|
2020-10-02 12:25:08 +05:30
|
|
|
SupernovaMetaEngineStatic() : AdvancedMetaEngineStatic(Supernova::gameDescriptions, sizeof(ADGameDescription), supernovaGames, optionsList) {
|
2017-05-31 18:49:03 +02:00
|
|
|
}
|
|
|
|
|
2020-02-05 16:17:22 +01:00
|
|
|
const char *getEngineId() const override {
|
2016-09-15 18:23:35 +02:00
|
|
|
return "supernova";
|
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:32 +01:00
|
|
|
const char *getName() const override {
|
2016-09-15 20:04:14 +02:00
|
|
|
return "Mission Supernova";
|
2017-05-31 18:49:03 +02:00
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:32 +01:00
|
|
|
const char *getOriginalCopyright() const override {
|
2019-10-08 08:40:37 +02:00
|
|
|
return "Mission Supernova (C) 1994 Thomas and Steffen Dingel";
|
2017-05-31 18:49:03 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2017-09-04 22:48:50 +01:00
|
|
|
|
2020-10-02 12:25:08 +05:30
|
|
|
REGISTER_PLUGIN_STATIC(SUPERNOVA_DETECTION, PLUGIN_TYPE_METAENGINE, SupernovaMetaEngineStatic);
|