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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user