diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..ad50334 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,22 @@ +#include <iostream> +#include "CLI11.hpp" +#include "Companion.h" + +Companion* Companion::Instance; + +int main(int argc, char *argv[]) { + CLI::App app{"CubeOS - Rom extractor"}; + + std::string filename; + app.add_option("path", filename, "sm64 us rom")->required()->check(CLI::ExistingFile); + + try { + app.parse(argc, argv); + } catch (const CLI::ParseError &e) { + return app.exit(e); + } + + Companion::Instance = new Companion(filename); + Companion::Instance->Start(); + return 0; +}
\ No newline at end of file |
