diff options
-rw-r--r-- | drumgizmo/drumgizmoc.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drumgizmo/drumgizmoc.cc b/drumgizmo/drumgizmoc.cc index 6bb4d1a..ba3abfc 100644 --- a/drumgizmo/drumgizmoc.cc +++ b/drumgizmo/drumgizmoc.cc @@ -375,6 +375,21 @@ int main(int argc, char* argv[]) return 1; } } + + if(ie == nullptr) + { + std::cerr << "No input engine selected.\n"; + std::cout << usage(argv[0]); + return 1; + } + + if(oe == nullptr) + { + std::cerr << "No output engine selected.\n"; + std::cout << usage(argv[0]); + return 1; + } + std::cout << "Using kitfile: " << kitfile << std::endl; DrumGizmo gizmo(settings, *oe.get(), *ie.get()); |