| 605 | } |
| 606 | |
| 607 | std::unique_ptr<TrackDesign> TrackDesignImport(const utf8* path) |
| 608 | { |
| 609 | try |
| 610 | { |
| 611 | auto trackImporter = TrackImporter::Create(path); |
| 612 | trackImporter->Load(path); |
| 613 | return trackImporter->Import(); |
| 614 | } |
| 615 | catch (const std::exception& e) |
| 616 | { |
| 617 | LOG_ERROR("Unable to load track design: %s", e.what()); |
| 618 | } |
| 619 | LOG_VERBOSE("track_design_open(\"%s\")", path); |
| 620 | return nullptr; |
| 621 | } |
| 622 | |
| 623 | /** |
| 624 | * |
no test coverage detected