mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
GeckoCode: Provide operator== and operator!= overloads
Same thing but allows both GeckoCode and Code to be utilized directly without predicates for equality/inequality in stardard algorithms The size check for std::vectors is unnecessary, as this is built into std::vector's operator==
This commit is contained in:
@ -31,10 +31,15 @@ public:
|
||||
bool enabled;
|
||||
bool user_defined;
|
||||
|
||||
bool Compare(const GeckoCode& compare) const;
|
||||
bool Exist(u32 address, u32 data) const;
|
||||
};
|
||||
|
||||
bool operator==(const GeckoCode& lhs, const GeckoCode& rhs);
|
||||
bool operator!=(const GeckoCode& lhs, const GeckoCode& rhs);
|
||||
|
||||
bool operator==(const GeckoCode::Code& lhs, const GeckoCode::Code& rhs);
|
||||
bool operator!=(const GeckoCode::Code& lhs, const GeckoCode::Code& rhs);
|
||||
|
||||
// Installation address for codehandler.bin in the Game's RAM
|
||||
constexpr u32 INSTALLER_BASE_ADDRESS = 0x80001800;
|
||||
constexpr u32 INSTALLER_END_ADDRESS = 0x80003000;
|
||||
|
Reference in New Issue
Block a user