Core/SyncIdentifier: Default operator==

Lets us remove a bunch of code and a dependency on the <tuple> header.
This commit is contained in:
Lioncash 2023-12-11 19:34:55 -05:00
parent 6699acf10c
commit e011c3b383
1 changed files with 1 additions and 7 deletions

View File

@ -5,7 +5,6 @@
#include <array>
#include <string>
#include <tuple>
#include "Common/CommonTypes.h"
@ -26,12 +25,7 @@ struct SyncIdentifier
// The way the hash is calculated may change with updates to Dolphin.
std::array<u8, 20> sync_hash{};
bool operator==(const SyncIdentifier& s) const
{
return std::tie(dol_elf_size, game_id, revision, disc_number, is_datel, sync_hash) ==
std::tie(s.dol_elf_size, s.game_id, s.revision, s.disc_number, s.is_datel, s.sync_hash);
}
bool operator!=(const SyncIdentifier& s) const { return !operator==(s); }
bool operator==(const SyncIdentifier&) const = default;
};
// The order of entries in this enum matters, as the lowest value is