1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00

Save .park in crash code

This commit is contained in:
Ted John
2021-04-02 21:09:34 +01:00
parent fce02c21c3
commit 9fe4cea07e
4 changed files with 32 additions and 23 deletions

View File

@@ -7,6 +7,8 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include "ParkFile.h"
#include "Cheats.h"
#include "Context.h"
#include "GameState.h"
@@ -1245,6 +1247,14 @@ namespace OpenRCT2
}
} // namespace OpenRCT2
void ParkFileExporter::Export(std::string_view path)
{
map_reorganise_elements();
auto parkFile = std::make_unique<OpenRCT2::ParkFile>();
parkFile->Save(path);
}
enum : uint32_t
{
S6_SAVE_FLAG_EXPORT = 1 << 0,