diff options
author | Max Horn | 2006-07-31 13:41:21 +0000 |
---|---|---|
committer | Max Horn | 2006-07-31 13:41:21 +0000 |
commit | 4a80db4c7b75ca58b7a2c02a740e0ed7e19c52f4 (patch) | |
tree | 25b4b111b4a9bbc712a5f53335b0e9ce5b5c9abd /gui | |
parent | a1bb64e24b3fdcd8983a479fe9b6c0d88f650e30 (diff) | |
download | scummvm-rg350-4a80db4c7b75ca58b7a2c02a740e0ed7e19c52f4.tar.gz scummvm-rg350-4a80db4c7b75ca58b7a2c02a740e0ed7e19c52f4.tar.bz2 scummvm-rg350-4a80db4c7b75ca58b7a2c02a740e0ed7e19c52f4.zip |
* Added copyright string to all engine plugins
* Modified about dialog to list all available plugins with their resp. copyright
* Modified about dialog credits to show the GPL last (like movie end credits do with their legal text, too)
svn-id: r23645
Diffstat (limited to 'gui')
-rw-r--r-- | gui/about.cpp | 50 |
1 files changed, 32 insertions, 18 deletions
diff --git a/gui/about.cpp b/gui/about.cpp index 981a50aef5..55319bdc46 100644 --- a/gui/about.cpp +++ b/gui/about.cpp @@ -21,6 +21,7 @@ #include "common/stdafx.h" #include "base/engine.h" +#include "base/plugins.h" #include "base/version.h" #include "common/system.h" #include "common/util.h" @@ -50,21 +51,7 @@ enum { // // TODO: Add different font sizes (for bigger headlines) // TODO: Allow color change in the middle of a line... -static const char *credits_intro[] = { -"\\C""Copyright (C) 2002-2006 The ScummVM project", -"\\C""http://www.scummvm.org", -"\\C""", -"\\C""LucasArts SCUMM Games (C) LucasArts", -"\\C""Humongous SCUMM Games (C) Humongous", -"\\C""Simon the Sorcerer (C) Adventure Soft", -"\\C""Beneath a Steel Sky (C) Revolution", -"\\C""Broken Sword Games (C) Revolution", -"\\C""Flight of the Amazon Queen (C) John Passfield", -"\\C""and Steve Stamatiadis", -"\\C""Inherit the Earth (C) Wyrmkeep Entertainment", -"\\C""Goblins Games (C) Coktel Vision", -"\\C""The Legend of Kyrandia (C) Westwood Studios", -"\\C""", +static const char *gpl_text[] = { "\\C""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.", "\\C""", "\\C""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.", @@ -116,18 +103,45 @@ AboutDialog::AboutDialog() date += ')'; _lines.push_back(date); - Common::String features("\\C\\c2""Supports: "); + + addLine(""); + addLine("\\C""Copyright (C) 2002-2006 The ScummVM project"); + addLine("\\C""http://www.scummvm.org"); + addLine(""); + + addLine("\\C\\c1""Features compiled in:"); + Common::String features("\\C"); features += gScummVMFeatures; addLine(features.c_str()); _lines.push_back(""); - for (i = 0; i < ARRAYSIZE(credits_intro); i++) - addLine(credits_intro[i]); + addLine("\\C\\c1""Available engines:"); + const PluginList &plugins = PluginManager::instance().getPlugins(); + PluginList::const_iterator iter = plugins.begin(); + for (; iter != plugins.end(); ++iter) { + Common::String str; + str = "\\C"; + str += (**iter).getName(); + addLine(str.c_str()); + + str = "\\C\\c2"; + str += (**iter).getCopyright(); + addLine(str.c_str()); + + //addLine(""); + } + + _lines.push_back(""); for (i = 0; i < ARRAYSIZE(credits); i++) addLine(credits[i]); + _lines.push_back(""); + + for (i = 0; i < ARRAYSIZE(gpl_text); i++) + addLine(gpl_text[i]); + // Center the dialog _x = (screenW - _w) / 2; _y = (screenH - _h) / 2; |