diff --git a/rpcs3/Emu/Cell/Modules/sceNp.h b/rpcs3/Emu/Cell/Modules/sceNp.h index 1bc0a345db..5a7e9cc542 100644 --- a/rpcs3/Emu/Cell/Modules/sceNp.h +++ b/rpcs3/Emu/Cell/Modules/sceNp.h @@ -5,6 +5,7 @@ #include "Emu/Cell/ErrorCodes.h" #include "util/shared_ptr.hpp" +#include #include error_code sceNpInit(u32 poolsize, vm::ptr poolptr); @@ -1285,6 +1286,11 @@ struct SceNpId u8 reserved[8]; }; +inline bool operator<(const SceNpId& lhs, const SceNpId& rhs) noexcept +{ + return std::memcmp(&lhs, &rhs, sizeof(SceNpId)) < 0; +} + CHECK_SIZE_ALIGN(SceNpId, 0x24, 1); // Online Name structure @@ -1697,6 +1703,11 @@ struct SceNpRoomId u8 reserved[8]; }; +inline bool operator<(const SceNpRoomId& lhs, const SceNpRoomId& rhs) noexcept +{ + return std::memcmp(&lhs, &rhs, sizeof(SceNpRoomId)) < 0; +} + struct SceNpMatchingAttr { vm::bptr next;