diff options
author | Max Horn | 2008-02-04 10:15:21 +0000 |
---|---|---|
committer | Max Horn | 2008-02-04 10:15:21 +0000 |
commit | 5fb7f7a4d66c48be928440c3142b196a479ca94c (patch) | |
tree | 14d1855b57dc2306ef094887a1b735b2722148b1 /base/game.cpp | |
parent | dd7fcd686790ea6a2e9021eac5b9e1c8bff88d26 (diff) | |
download | scummvm-rg350-5fb7f7a4d66c48be928440c3142b196a479ca94c.tar.gz scummvm-rg350-5fb7f7a4d66c48be928440c3142b196a479ca94c.tar.bz2 scummvm-rg350-5fb7f7a4d66c48be928440c3142b196a479ca94c.zip |
Commited updated version of my own patch #1868402: Basic savestate plugin API
svn-id: r30786
Diffstat (limited to 'base/game.cpp')
-rw-r--r-- | base/game.cpp | 11 |
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. |