1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 15:24:30 +01:00

Add plugin hook for map save

This commit is contained in:
Ted John
2022-03-07 20:40:48 +00:00
committed by GitHub
parent 11ce0e8f8a
commit b7b8816db7
12 changed files with 26 additions and 22 deletions

View File

@@ -2758,7 +2758,7 @@ bool NetworkBase::LoadMap(IStream* stream)
bool NetworkBase::SaveMap(IStream* stream, const std::vector<const ObjectRepositoryItem*>& objects) const
{
bool result = false;
viewport_set_saved_view();
PrepareMapForSave();
try
{
auto exporter = std::make_unique<ParkFileExporter>();