mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-03-28 12:29:34 -04:00
ResultCode: Mark any error code that isn't 0 as an error.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user