aboutsummaryrefslogtreecommitdiff
path: root/gui/themebrowser.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2006-10-08 19:51:20 +0000
committerJohannes Schickel2006-10-08 19:51:20 +0000
commit97d9293476b4df337e1e25e68ca81ffd36002683 (patch)
tree81af7b075b7f56d8de4968a14535af25cca3c7b8 /gui/themebrowser.cpp
parent51edc30e7125308f2aa7404c4202833b195c2d2f (diff)
downloadscummvm-rg350-97d9293476b4df337e1e25e68ca81ffd36002683.tar.gz
scummvm-rg350-97d9293476b4df337e1e25e68ca81ffd36002683.tar.bz2
scummvm-rg350-97d9293476b4df337e1e25e68ca81ffd36002683.zip
Adding a 'name' field to the theme config which is used for nice theme names in the theme browser.
svn-id: r24229
Diffstat (limited to 'gui/themebrowser.cpp')
-rw-r--r--gui/themebrowser.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/themebrowser.cpp b/gui/themebrowser.cpp
index d81d43db6f..8809ed149a 100644
--- a/gui/themebrowser.cpp
+++ b/gui/themebrowser.cpp
@@ -171,7 +171,11 @@ bool ThemeBrowser::isTheme(const FilesystemNode &node, Entry &out) {
return false;
out.type = type;
- out.name = out.file;
+
+ if (cfg.hasKey("name", "theme"))
+ cfg.getKey("name", "theme", out.name);
+ else
+ out.name = out.file;
return true;
}