[nostalgia] Make almost everyting noexcept

This commit is contained in:
2021-04-20 01:56:41 -05:00
parent 161780cb91
commit 6ece0b6f9b
22 changed files with 139 additions and 136 deletions

View File

@@ -15,11 +15,15 @@ int main(int argc, const char **argv) {
if (argc > 1) {
ox::trace::init();
auto path = argv[1];
auto fs = nostalgia::core::loadRomFs(path);
auto err = run(fs);
auto [fs, err] = nostalgia::core::loadRomFs(path);
if (err) {
oxAssert(err, "Something went wrong...");
return static_cast<int>(err);
}
err = run(fs);
oxAssert(err, "Something went wrong...");
delete fs;
return err;
return static_cast<int>(err);
}
return 1;
}