mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 11:37:33 +01:00
file_sys/nca_metadata: Remove unnecessary comparison operators for TitleType
enum class elements from the same enum can already be compared against one another without the need for explicitly defined comparison operators.
This commit is contained in:
parent
66be5150d6
commit
a1868286b0
@ -10,14 +10,6 @@
|
|||||||
|
|
||||||
namespace FileSys {
|
namespace FileSys {
|
||||||
|
|
||||||
bool operator>=(TitleType lhs, TitleType rhs) {
|
|
||||||
return static_cast<std::size_t>(lhs) >= static_cast<std::size_t>(rhs);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator<=(TitleType lhs, TitleType rhs) {
|
|
||||||
return static_cast<std::size_t>(lhs) <= static_cast<std::size_t>(rhs);
|
|
||||||
}
|
|
||||||
|
|
||||||
CNMT::CNMT(VirtualFile file) {
|
CNMT::CNMT(VirtualFile file) {
|
||||||
if (file->ReadObject(&header) != sizeof(CNMTHeader))
|
if (file->ReadObject(&header) != sizeof(CNMTHeader))
|
||||||
return;
|
return;
|
||||||
|
@ -29,9 +29,6 @@ enum class TitleType : u8 {
|
|||||||
DeltaTitle = 0x83,
|
DeltaTitle = 0x83,
|
||||||
};
|
};
|
||||||
|
|
||||||
bool operator>=(TitleType lhs, TitleType rhs);
|
|
||||||
bool operator<=(TitleType lhs, TitleType rhs);
|
|
||||||
|
|
||||||
enum class ContentRecordType : u8 {
|
enum class ContentRecordType : u8 {
|
||||||
Meta = 0,
|
Meta = 0,
|
||||||
Program = 1,
|
Program = 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user