[nostalgia] Rename ValErr to Result
This commit is contained in:
@@ -33,7 +33,7 @@ struct SdlImplData {
|
||||
|
||||
constexpr auto Scale = 5;
|
||||
|
||||
static ox::ValErr<ox::Vector<char>> readFile(Context *ctx, const ox::FileAddress &file) {
|
||||
static ox::Result<ox::Vector<char>> readFile(Context *ctx, const ox::FileAddress &file) {
|
||||
auto [stat, err] = ctx->rom->stat(file);
|
||||
oxReturnError(err);
|
||||
ox::Vector<char> buff(stat.size);
|
||||
@@ -42,7 +42,7 @@ static ox::ValErr<ox::Vector<char>> readFile(Context *ctx, const ox::FileAddress
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
ox::ValErr<T> readObj(Context *ctx, const ox::FileAddress &file) {
|
||||
ox::Result<T> readObj(Context *ctx, const ox::FileAddress &file) {
|
||||
auto [buff, err] = readFile(ctx, file);
|
||||
oxReturnError(err);
|
||||
T t;
|
||||
|
||||
Reference in New Issue
Block a user