2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-05 23:15:52 +00:00

Add signed equality operators to FourCC

This commit is contained in:
Phillip Stephens 2016-05-12 20:12:01 -07:00
parent 6dabea0b21
commit 9b7c8c746b

View File

@ -518,6 +518,8 @@ public:
bool operator!=(const FourCC& other) const {return num != other.num;}
bool operator==(const char* other) const {return num == *(uint32_t*)other;}
bool operator!=(const char* other) const {return num != *(uint32_t*)other;}
bool operator==(int32_t other) const { return num == other;}
bool operator!=(int32_t other) const { return num != other;}
bool operator==(uint32_t other) const {return num == other;}
bool operator!=(uint32_t other) const {return num != other;}
std::string toString() const {return std::string(fcc, 4);}