mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-07 04:33:24 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f4318e36c |
@@ -117,6 +117,7 @@ template <typename T>
|
||||
static void GetFuncAddress(Common::DynamicLibrary& dll, const char* name, T& pfn) {
|
||||
if (!dll.GetSymbol(name, &pfn)) {
|
||||
LOG_CRITICAL(HW_Memory, "Failed to load {}", name);
|
||||
throw std::bad_alloc{};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -121,7 +121,10 @@ union Exclusive {
|
||||
constexpr explicit Exclusive(u32 raw_) : raw{raw_} {}
|
||||
|
||||
constexpr bool Verify() {
|
||||
return this->GetSig() == 0x10;
|
||||
if (this->GetSig() != 0x10) return false;
|
||||
const bool pair = decltype(l)::ExtractValue(raw) & 1;
|
||||
const bool fixed_rt2 = decltype(rt2)::ExtractValue(raw) == 0b11111;
|
||||
return pair || fixed_rt2;
|
||||
}
|
||||
|
||||
constexpr u32 GetSig() {
|
||||
|
||||
Reference in New Issue
Block a user