diff options
author | Eugene Sandulenko | 2010-06-15 10:57:28 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-06-15 10:57:28 +0000 |
commit | 01bc5dda944f121187a4499f03d3a3814741f093 (patch) | |
tree | 1d08ad7b5f2e6c7c9209c5d6b3f2e80307969d35 /engines | |
parent | 8dcc49251f08492968ddfcbb825bfe0a17d0747b (diff) | |
download | scummvm-rg350-01bc5dda944f121187a4499f03d3a3814741f093.tar.gz scummvm-rg350-01bc5dda944f121187a4499f03d3a3814741f093.tar.bz2 scummvm-rg350-01bc5dda944f121187a4499f03d3a3814741f093.zip |
GUI: Implemented Languages as GUI options.
SCUMM and AdvancedDetector support this feature.
svn-id: r49786
Diffstat (limited to 'engines')
-rw-r--r-- | engines/advancedDetector.cpp | 1 | ||||
-rw-r--r-- | engines/game.cpp | 4 | ||||
-rw-r--r-- | engines/game.h | 1 | ||||
-rw-r--r-- | engines/scumm/detection.cpp | 1 |
4 files changed, 7 insertions, 0 deletions
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp index 061eec2faf..ee0c5c7c62 100644 --- a/engines/advancedDetector.cpp +++ b/engines/advancedDetector.cpp @@ -208,6 +208,7 @@ static void updateGameDescriptor(GameDescriptor &desc, const ADGameDescription * desc["extra"] = realDesc->extra; desc.setGUIOptions(realDesc->guioptions | params.guioptions); + desc.appendGUIOptions(getGameGUIOptionsDescriptionLanguage(realDesc->language)); } GameList AdvancedMetaEngine::detectGames(const Common::FSList &fslist) const { diff --git a/engines/game.cpp b/engines/game.cpp index c7f26019d6..dea6d37485 100644 --- a/engines/game.cpp +++ b/engines/game.cpp @@ -73,6 +73,10 @@ void GameDescriptor::setGUIOptions(uint32 guioptions) { erase("guioptions"); } +void GameDescriptor::appendGUIOptions(const Common::String &str) { + setVal("guioptions", getVal("guioptions", "") + " " + str); +} + void GameDescriptor::updateDesc(const char *extra) { // TODO: The format used here (LANG/PLATFORM/EXTRA) is not set in stone. // We may want to change the order (PLATFORM/EXTRA/LANG, anybody?), or diff --git a/engines/game.h b/engines/game.h index 49136ecf5a..b125421ff6 100644 --- a/engines/game.h +++ b/engines/game.h @@ -83,6 +83,7 @@ public: void updateDesc(const char *extra = 0); void setGUIOptions(uint32 options); + void appendGUIOptions(const Common::String &str); Common::String &gameid() { return getVal("gameid"); } Common::String &description() { return getVal("description"); } diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp index 667dab91de..21da732064 100644 --- a/engines/scumm/detection.cpp +++ b/engines/scumm/detection.cpp @@ -884,6 +884,7 @@ GameList ScummMetaEngine::detectGames(const Common::FSList &fslist) const { } dg.setGUIOptions(x->game.guioptions | MidiDriver::midiDriverFlags2GUIO(x->game.midi)); + dg.appendGUIOptions(getGameGUIOptionsDescriptionLanguage(x->language)); detectedGames.push_back(dg); } |