add rom filename command line arg LoadFromFile

This commit is contained in:
scawful
2024-05-28 13:04:39 -04:00
parent cc80e5e502
commit a9787b7055
5 changed files with 14 additions and 4 deletions

View File

@@ -25,6 +25,11 @@ int main(int argc, char** argv) {
options.alarm_on_failure_secs = true;
absl::InstallFailureSignalHandler(options);
std::string rom_filename;
if (argc > 1) {
rom_filename = argv[1];
}
core::Controller controller;
EXIT_IF_ERROR(controller.OnEntry())