aboutsummaryrefslogtreecommitdiff
path: root/base/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'base/game.cpp')
-rw-r--r--base/game.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/base/game.cpp b/base/game.cpp
index 9aaaf3a6af..a79cfddec9 100644
--- a/base/game.cpp
+++ b/base/game.cpp
@@ -25,6 +25,8 @@
#include "base/game.h"
#include "base/plugins.h"
+#include "graphics/surface.h"
+
const PlainGameDescriptor *findPlainGameDescriptor(const char *gameid, const PlainGameDescriptor *list) {
const PlainGameDescriptor *g = list;
@@ -66,6 +68,15 @@ void GameDescriptor::updateDesc(const char *extra) {
}
}
+void SaveStateDescriptor::setThumbnail(Graphics::Surface *t) {
+ if (_thumbnail && _thumbnail != t) {
+ _thumbnail->free();
+ delete _thumbnail;
+ }
+ _thumbnail = t;
+}
+
+
namespace Base {
// TODO: Find a better name & place for this function.