Fix convert command

This commit is contained in:
Ted John 2017-02-07 20:13:50 +00:00
parent c80021d9da
commit 61b69546fa
1 changed files with 2 additions and 1 deletions

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);