mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Starting CUBE-OS v0.1...
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user