early-access version 2720
This commit is contained in:
parent
b85e9fa2ec
commit
e30bfacdf1
2 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 2719.
|
This is the source code for early-access 2720.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
|
|
@ -181,7 +181,7 @@ public:
|
||||||
consteval ResultRange(ErrorModule module, u32 description_start, u32 description_end_)
|
consteval ResultRange(ErrorModule module, u32 description_start, u32 description_end_)
|
||||||
: code{module, description_start}, description_end{description_end_} {}
|
: code{module, description_start}, description_end{description_end_} {}
|
||||||
|
|
||||||
[[nodiscard]] consteval operator ResultCode() const {
|
[[nodiscard]] constexpr operator ResultCode() const {
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -232,6 +232,8 @@ public:
|
||||||
|
|
||||||
constexpr ResultVal(ResultCode code) : expected{Common::Unexpected(code)} {}
|
constexpr ResultVal(ResultCode code) : expected{Common::Unexpected(code)} {}
|
||||||
|
|
||||||
|
constexpr ResultVal(ResultRange range) : expected{Common::Unexpected(range)} {}
|
||||||
|
|
||||||
template <typename U>
|
template <typename U>
|
||||||
constexpr ResultVal(U&& val) : expected{std::forward<U>(val)} {}
|
constexpr ResultVal(U&& val) : expected{std::forward<U>(val)} {}
|
||||||
|
|
||||||
|
@ -317,7 +319,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// TODO: Replace this with std::expected once it is standardized in the STL.
|
// TODO (Morph): Replace this with C++23 std::expected.
|
||||||
Common::Expected<T, ResultCode> expected;
|
Common::Expected<T, ResultCode> expected;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue