mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-09 07:21:04 +02:00
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:
@@ -1656,7 +1656,14 @@ void GameView::OnFileDrop(ByteString filename)
|
|||||||
new ErrorMessage("Error loading save", "Dropped save file could not be loaded: " + saveFile->GetError());
|
new ErrorMessage("Error loading save", "Dropped save file could not be loaded: " + saveFile->GetError());
|
||||||
return;
|
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
|
// hide the info text if it's not already hidden
|
||||||
SkipIntroText();
|
SkipIntroText();
|
||||||
|
Reference in New Issue
Block a user