Browse Source
Merge pull request #2341 from lioncash/compare
file_sys/nca_metadata: Remove unnecessary comparison operators for TitleType
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
0 additions and
11 deletions
-
src/core/file_sys/nca_metadata.cpp
-
src/core/file_sys/nca_metadata.h
|
|
|
@ -10,14 +10,6 @@ |
|
|
|
|
|
|
|
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) { |
|
|
|
if (file->ReadObject(&header) != sizeof(CNMTHeader)) |
|
|
|
return; |
|
|
|
|
|
|
|
@ -29,9 +29,6 @@ enum class TitleType : u8 { |
|
|
|
DeltaTitle = 0x83, |
|
|
|
}; |
|
|
|
|
|
|
|
bool operator>=(TitleType lhs, TitleType rhs); |
|
|
|
bool operator<=(TitleType lhs, TitleType rhs); |
|
|
|
|
|
|
|
enum class ContentRecordType : u8 { |
|
|
|
Meta = 0, |
|
|
|
Program = 1, |
|
|
|
|