diff options
author | Subv <subv2112@gmail.com> | 2018-02-19 00:30:30 -0500 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-02-27 09:44:35 -0500 |
commit | 6e38081165f6180180f824fa1864605ec4db1614 (patch) | |
tree | 3fc5a2ecf4d993d178a24e8854e2d5b47e9079c6 /src | |
parent | 65f3119074f4cb6a07af747b9c9d8445e08ccc50 (diff) |
ResultCode: Mark any error code that isn't 0 as an error.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/result.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/result.h b/src/core/hle/result.h index 656e1b4a7..97fef7a48 100644 --- a/src/core/hle/result.h +++ b/src/core/hle/result.h @@ -108,11 +108,11 @@ union ResultCode { } constexpr bool IsSuccess() const { - return is_error.ExtractValue(raw) == 0; + return raw == 0; } constexpr bool IsError() const { - return is_error.ExtractValue(raw) == 1; + return raw != 0; } }; |