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.
This commit is contained in:
Tamás Bálint Misius
2023-08-29 15:17:35 +02:00
parent f0a447bcd5
commit 9ea09d129d

View File

@@ -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();