diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2023-08-17 00:40:00 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2023-08-17 00:40:00 -0600 |
| commit | 1c5b3de55c72dca9a16c58a0f4dba3eee9b1f8e6 (patch) | |
| tree | b6d3cdb0411b0e0ef8e802516fd6f65462d79c1b /src/main.cpp | |
| parent | 6fd8e5ee43dd0f87eb4e57b86e84770fcd95db25 (diff) | |
Starting CUBE-OS v0.1...
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 |
