summaryrefslogtreecommitdiff
path: root/src/game/GameController.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2012-12-06 16:01:46 (GMT)
committer jacob1 <jfu614@gmail.com>2012-12-06 16:01:46 (GMT)
commit122599763ef9827d7aadc0fe0295c2fbc96e82ab (patch)
treedcf0a21b20cd38a12dee93d9db6115da6c0fdb35 /src/game/GameController.cpp
parent2d7ac84c1dca8521f41cf023774b7a90e300b3bf (diff)
parent9bf5eeeef919260458637e84f3388b4d7d8204c5 (diff)
downloadpowder-122599763ef9827d7aadc0fe0295c2fbc96e82ab.zip
powder-122599763ef9827d7aadc0fe0295c2fbc96e82ab.tar.gz
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src/game/GameController.cpp')
-rw-r--r--src/game/GameController.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index 18b93d6..c929f3a 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -987,6 +987,15 @@ void GameController::OpenSavePreview(int saveID, int saveDate)
ui::Engine::Ref().ShowWindow(activePreview->GetView());
}
+void GameController::OpenSavePreview()
+{
+ if(gameModel->GetSave())
+ {
+ activePreview = new PreviewController(gameModel->GetSave()->GetID(), new SaveOpenCallback(this));
+ ui::Engine::Ref().ShowWindow(activePreview->GetView());
+ }
+}
+
void GameController::OpenLocalBrowse()
{
class LocalSaveOpenCallback: public FileSelectedCallback