From 1c5b3de55c72dca9a16c58a0f4dba3eee9b1f8e6 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Thu, 17 Aug 2023 00:40:00 -0600 Subject: Starting CUBE-OS v0.1... --- src/main.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/main.cpp (limited to 'src/main.cpp') 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 +#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 -- cgit v1.2.3