From 9ea09d129d16132587d29788143312ac5fe43941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Tue, 29 Aug 2023 15:17:35 +0200 Subject: [PATCH] Enter stamp placement mode when dnd'ing a stamp That is, an .stm file. Do this rather than open it as a save, as is done with .cps files. --- src/gui/game/GameView.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index 8872d84e2..8233956d3 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -1656,7 +1656,14 @@ void GameView::OnFileDrop(ByteString filename) new ErrorMessage("Error loading save", "Dropped save file could not be loaded: " + saveFile->GetError()); return; } - c->LoadSaveFile(std::move(saveFile)); + if (filename.EndsWith(".stm")) + { + c->LoadStamp(saveFile->TakeGameSave()); + } + else + { + c->LoadSaveFile(std::move(saveFile)); + } // hide the info text if it's not already hidden SkipIntroText();