[nostalgia/player] Give player a mechanism for reporting failure in release builds
This commit is contained in:
parent
9e9f30fb18
commit
e808859e29
@ -18,8 +18,7 @@ static ox::Error run(int argc, const char **argv) noexcept {
|
|||||||
nostalgia::registerKeelModules();
|
nostalgia::registerKeelModules();
|
||||||
#endif
|
#endif
|
||||||
if (argc < 2) {
|
if (argc < 2) {
|
||||||
oxErr("Please provide path to project directory or OxFS file.\n");
|
return OxError(1, "Please provide path to project directory or OxFS file.");
|
||||||
return OxError(1);
|
|
||||||
}
|
}
|
||||||
const auto path = argv[1];
|
const auto path = argv[1];
|
||||||
oxRequireM(fs, keel::loadRomFs(path));
|
oxRequireM(fs, keel::loadRomFs(path));
|
||||||
@ -37,5 +36,6 @@ int main(int argc, const char **argv) {
|
|||||||
ox::Error err;
|
ox::Error err;
|
||||||
err = run(argc, argv);
|
err = run(argc, argv);
|
||||||
oxAssert(err, "Something went wrong...");
|
oxAssert(err, "Something went wrong...");
|
||||||
|
oxErrf("Failure: {}\n", toStr(err));
|
||||||
return static_cast<int>(err);
|
return static_cast<int>(err);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user