1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

Fix convert command

This commit is contained in:
Ted John
2017-02-07 20:13:50 +00:00
parent c80021d9da
commit 61b69546fa

View File

@@ -111,7 +111,7 @@ exitcode_t CommandLine::HandleCommandConvert(CommandLineArgEnumerator * enumerat
try
{
auto importer = std::unique_ptr<IParkImporter>(ParkImporter::Create(destinationPath));
auto importer = std::unique_ptr<IParkImporter>(ParkImporter::Create(sourcePath));
importer->Load(sourcePath);
importer->Import();
}
@@ -136,6 +136,7 @@ exitcode_t CommandLine::HandleCommandConvert(CommandLineArgEnumerator * enumerat
// correct initial view
window_close_by_class(WC_MAIN_WINDOW);
exporter->Export();
if (destinationFileType == FILE_EXTENSION_SC6)
{
exporter->SaveScenario(destinationPath);