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