- Renamed GameSettings to PlainGameDescriptor
- Added new GameDescriptor struct (similar to PlainGameDescriptor but with Common::String members instead of const char * ones) - Changed DetectedGame to subclass GameDescriptor - Removed toGameSettings() in favor of new (template) constructors in DetectedGame and GameDescriptor - Fixed a bug in the obsolete gameid handling in the SCUMM & SIMON engines svn-id: r21150
This commit is contained in:
parent
d2f78184af
commit
86565fcca5
17 changed files with 126 additions and 131 deletions
|
@ -291,8 +291,8 @@ static int runGame(GameDetector &detector, OSystem &system, const Common::String
|
|||
// Set the window caption to the game name
|
||||
Common::String caption(ConfMan.get("description", detector._targetName));
|
||||
|
||||
const char *desc = GameDetector::findGame(detector._gameid).description;
|
||||
if (caption.isEmpty() && desc)
|
||||
Common::String desc = GameDetector::findGame(detector._gameid).description;
|
||||
if (caption.isEmpty() && !desc.isEmpty())
|
||||
caption = desc;
|
||||
if (caption.isEmpty())
|
||||
caption = detector._targetName;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue