diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index c17d466d6a..db480e15e9 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -833,7 +833,7 @@ typedef ucontext_t x64_context; #define XMMREG(context, reg) (reinterpret_cast(&(context)->uc_mcontext->__fs.__fpu_xmm0.__xmm_reg[reg])) #define EFLAGS(context) ((context)->uc_mcontext->__ss.__rflags) -uint64_t* darwin_x64reg(x64_context *context, int reg) +u64* darwin_x64reg(x64_context *context, int reg) { auto *state = &context->uc_mcontext->__ss; switch(reg) diff --git a/rpcs3/Emu/Cell/Modules/sceNpTus.h b/rpcs3/Emu/Cell/Modules/sceNpTus.h index 5bf95057c2..d31964b5e3 100644 --- a/rpcs3/Emu/Cell/Modules/sceNpTus.h +++ b/rpcs3/Emu/Cell/Modules/sceNpTus.h @@ -105,8 +105,8 @@ struct SceNpTssIfModifiedSinceParam struct SceNpTssGetDataOptParam { u64 size; // TODO: correct type? - vm::ptr offset; - vm::ptr lastByte; + vm::ptr offset; + vm::ptr lastByte; vm::ptr ifParam; }; diff --git a/rpcs3/Emu/Cell/lv2/sys_time.cpp b/rpcs3/Emu/Cell/lv2/sys_time.cpp index 3a18649e48..2b3bd1acab 100644 --- a/rpcs3/Emu/Cell/lv2/sys_time.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_time.cpp @@ -65,7 +65,7 @@ const auto s_time_aux_info = []() -> time_aux_info_t // TODO create a list of timers, static double mt_timebase = 0.0; -static uint64_t mt_timestart = 0; +static u64 mt_timestart = 0; static int clock_gettime(int clk_id, struct timespec* tp) { diff --git a/rpcs3/Emu/NP/generated/np2_structs_generated.h b/rpcs3/Emu/NP/generated/np2_structs_generated.h index 3e54f9f351..826be310be 100644 --- a/rpcs3/Emu/NP/generated/np2_structs_generated.h +++ b/rpcs3/Emu/NP/generated/np2_structs_generated.h @@ -179,15 +179,15 @@ struct MemberBinAttrInternal FLATBUFFERS_FINAL_CLASS : private flatbuffers::Tabl VT_UPDATEDATE = 4, VT_DATA = 6 }; - uint64_t updateDate() const { - return GetField(VT_UPDATEDATE, 0); + u64 updateDate() const { + return GetField(VT_UPDATEDATE, 0); } const BinAttr *data() const { return GetPointer(VT_DATA); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && - VerifyField(verifier, VT_UPDATEDATE) && + VerifyField(verifier, VT_UPDATEDATE) && VerifyOffset(verifier, VT_DATA) && verifier.VerifyTable(data()) && verifier.EndTable(); @@ -197,8 +197,8 @@ struct MemberBinAttrInternal FLATBUFFERS_FINAL_CLASS : private flatbuffers::Tabl struct MemberBinAttrInternalBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; - void add_updateDate(uint64_t updateDate) { - fbb_.AddElement(MemberBinAttrInternal::VT_UPDATEDATE, updateDate, 0); + void add_updateDate(u64 updateDate) { + fbb_.AddElement(MemberBinAttrInternal::VT_UPDATEDATE, updateDate, 0); } void add_data(flatbuffers::Offset data) { fbb_.AddOffset(MemberBinAttrInternal::VT_DATA, data); @@ -217,7 +217,7 @@ struct MemberBinAttrInternalBuilder { inline flatbuffers::Offset CreateMemberBinAttrInternal( flatbuffers::FlatBufferBuilder &_fbb, - uint64_t updateDate = 0, + u64 updateDate = 0, flatbuffers::Offset data = 0) { MemberBinAttrInternalBuilder builder_(_fbb); builder_.add_updateDate(updateDate); @@ -231,8 +231,8 @@ struct BinAttrInternal FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { VT_UPDATEMEMBERID = 6, VT_DATA = 8 }; - uint64_t updateDate() const { - return GetField(VT_UPDATEDATE, 0); + u64 updateDate() const { + return GetField(VT_UPDATEDATE, 0); } u16 updateMemberId() const { return GetField(VT_UPDATEMEMBERID, 0); @@ -242,7 +242,7 @@ struct BinAttrInternal FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && - VerifyField(verifier, VT_UPDATEDATE) && + VerifyField(verifier, VT_UPDATEDATE) && VerifyField(verifier, VT_UPDATEMEMBERID) && VerifyOffset(verifier, VT_DATA) && verifier.VerifyTable(data()) && @@ -253,8 +253,8 @@ struct BinAttrInternal FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { struct BinAttrInternalBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; - void add_updateDate(uint64_t updateDate) { - fbb_.AddElement(BinAttrInternal::VT_UPDATEDATE, updateDate, 0); + void add_updateDate(u64 updateDate) { + fbb_.AddElement(BinAttrInternal::VT_UPDATEDATE, updateDate, 0); } void add_updateMemberId(u16 updateMemberId) { fbb_.AddElement(BinAttrInternal::VT_UPDATEMEMBERID, updateMemberId, 0); @@ -276,7 +276,7 @@ struct BinAttrInternalBuilder { inline flatbuffers::Offset CreateBinAttrInternal( flatbuffers::FlatBufferBuilder &_fbb, - uint64_t updateDate = 0, + u64 updateDate = 0, u16 updateMemberId = 0, flatbuffers::Offset data = 0) { BinAttrInternalBuilder builder_(_fbb); @@ -524,8 +524,8 @@ struct RoomMemberDataInternal FLATBUFFERS_FINAL_CLASS : private flatbuffers::Tab const UserInfo2 *userInfo() const { return GetPointer(VT_USERINFO); } - uint64_t joinDate() const { - return GetField(VT_JOINDATE, 0); + u64 joinDate() const { + return GetField(VT_JOINDATE, 0); } u16 memberId() const { return GetField(VT_MEMBERID, 0); @@ -549,7 +549,7 @@ struct RoomMemberDataInternal FLATBUFFERS_FINAL_CLASS : private flatbuffers::Tab return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_USERINFO) && verifier.VerifyTable(userInfo()) && - VerifyField(verifier, VT_JOINDATE) && + VerifyField(verifier, VT_JOINDATE) && VerifyField(verifier, VT_MEMBERID) && VerifyField(verifier, VT_TEAMID) && VerifyField(verifier, VT_ROOMGROUP) && @@ -568,8 +568,8 @@ struct RoomMemberDataInternalBuilder { void add_userInfo(flatbuffers::Offset userInfo) { fbb_.AddOffset(RoomMemberDataInternal::VT_USERINFO, userInfo); } - void add_joinDate(uint64_t joinDate) { - fbb_.AddElement(RoomMemberDataInternal::VT_JOINDATE, joinDate, 0); + void add_joinDate(u64 joinDate) { + fbb_.AddElement(RoomMemberDataInternal::VT_JOINDATE, joinDate, 0); } void add_memberId(u16 memberId) { fbb_.AddElement(RoomMemberDataInternal::VT_MEMBERID, memberId, 0); @@ -604,7 +604,7 @@ struct RoomMemberDataInternalBuilder { inline flatbuffers::Offset CreateRoomMemberDataInternal( flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset userInfo = 0, - uint64_t joinDate = 0, + u64 joinDate = 0, u16 memberId = 0, u8 teamId = 0, u8 roomGroup = 0, @@ -626,7 +626,7 @@ inline flatbuffers::Offset CreateRoomMemberDataInternal( inline flatbuffers::Offset CreateRoomMemberDataInternalDirect( flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset userInfo = 0, - uint64_t joinDate = 0, + u64 joinDate = 0, u16 memberId = 0, u8 teamId = 0, u8 roomGroup = 0, @@ -776,14 +776,14 @@ struct RoomDataInternal FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { u32 worldId() const { return GetField(VT_WORLDID, 0); } - uint64_t lobbyId() const { - return GetField(VT_LOBBYID, 0); + u64 lobbyId() const { + return GetField(VT_LOBBYID, 0); } - uint64_t roomId() const { - return GetField(VT_ROOMID, 0); + u64 roomId() const { + return GetField(VT_ROOMID, 0); } - uint64_t passwordSlotMask() const { - return GetField(VT_PASSWORDSLOTMASK, 0); + u64 passwordSlotMask() const { + return GetField(VT_PASSWORDSLOTMASK, 0); } u32 maxSlot() const { return GetField(VT_MAXSLOT, 0); @@ -807,9 +807,9 @@ struct RoomDataInternal FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { return VerifyTableStart(verifier) && VerifyField(verifier, VT_SERVERID) && VerifyField(verifier, VT_WORLDID) && - VerifyField(verifier, VT_LOBBYID) && - VerifyField(verifier, VT_ROOMID) && - VerifyField(verifier, VT_PASSWORDSLOTMASK) && + VerifyField(verifier, VT_LOBBYID) && + VerifyField(verifier, VT_ROOMID) && + VerifyField(verifier, VT_PASSWORDSLOTMASK) && VerifyField(verifier, VT_MAXSLOT) && VerifyOffset(verifier, VT_MEMBERLIST) && verifier.VerifyVector(memberList()) && @@ -835,14 +835,14 @@ struct RoomDataInternalBuilder { void add_worldId(u32 worldId) { fbb_.AddElement(RoomDataInternal::VT_WORLDID, worldId, 0); } - void add_lobbyId(uint64_t lobbyId) { - fbb_.AddElement(RoomDataInternal::VT_LOBBYID, lobbyId, 0); + void add_lobbyId(u64 lobbyId) { + fbb_.AddElement(RoomDataInternal::VT_LOBBYID, lobbyId, 0); } - void add_roomId(uint64_t roomId) { - fbb_.AddElement(RoomDataInternal::VT_ROOMID, roomId, 0); + void add_roomId(u64 roomId) { + fbb_.AddElement(RoomDataInternal::VT_ROOMID, roomId, 0); } - void add_passwordSlotMask(uint64_t passwordSlotMask) { - fbb_.AddElement(RoomDataInternal::VT_PASSWORDSLOTMASK, passwordSlotMask, 0); + void add_passwordSlotMask(u64 passwordSlotMask) { + fbb_.AddElement(RoomDataInternal::VT_PASSWORDSLOTMASK, passwordSlotMask, 0); } void add_maxSlot(u32 maxSlot) { fbb_.AddElement(RoomDataInternal::VT_MAXSLOT, maxSlot, 0); @@ -878,9 +878,9 @@ inline flatbuffers::Offset CreateRoomDataInternal( flatbuffers::FlatBufferBuilder &_fbb, u16 serverId = 0, u32 worldId = 0, - uint64_t lobbyId = 0, - uint64_t roomId = 0, - uint64_t passwordSlotMask = 0, + u64 lobbyId = 0, + u64 roomId = 0, + u64 passwordSlotMask = 0, u32 maxSlot = 0, flatbuffers::Offset>> memberList = 0, u16 ownerId = 0, @@ -906,9 +906,9 @@ inline flatbuffers::Offset CreateRoomDataInternalDirect( flatbuffers::FlatBufferBuilder &_fbb, u16 serverId = 0, u32 worldId = 0, - uint64_t lobbyId = 0, - uint64_t roomId = 0, - uint64_t passwordSlotMask = 0, + u64 lobbyId = 0, + u64 roomId = 0, + u64 passwordSlotMask = 0, u32 maxSlot = 0, const std::vector> *memberList = nullptr, u16 ownerId = 0, @@ -965,11 +965,11 @@ struct RoomDataExternal FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { u16 privateSlotNum() const { return GetField(VT_PRIVATESLOTNUM, 0); } - uint64_t lobbyId() const { - return GetField(VT_LOBBYID, 0); + u64 lobbyId() const { + return GetField(VT_LOBBYID, 0); } - uint64_t roomId() const { - return GetField(VT_ROOMID, 0); + u64 roomId() const { + return GetField(VT_ROOMID, 0); } u16 openPublicSlotNum() const { return GetField(VT_OPENPUBLICSLOTNUM, 0); @@ -983,8 +983,8 @@ struct RoomDataExternal FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { u16 curMemberNum() const { return GetField(VT_CURMEMBERNUM, 0); } - uint64_t passwordSlotMask() const { - return GetField(VT_PASSWORDSLOTMASK, 0); + u64 passwordSlotMask() const { + return GetField(VT_PASSWORDSLOTMASK, 0); } const UserInfo2 *owner() const { return GetPointer(VT_OWNER); @@ -1010,13 +1010,13 @@ struct RoomDataExternal FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { VerifyField(verifier, VT_WORLDID) && VerifyField(verifier, VT_PUBLICSLOTNUM) && VerifyField(verifier, VT_PRIVATESLOTNUM) && - VerifyField(verifier, VT_LOBBYID) && - VerifyField(verifier, VT_ROOMID) && + VerifyField(verifier, VT_LOBBYID) && + VerifyField(verifier, VT_ROOMID) && VerifyField(verifier, VT_OPENPUBLICSLOTNUM) && VerifyField(verifier, VT_MAXSLOT) && VerifyField(verifier, VT_OPENPRIVATESLOTNUM) && VerifyField(verifier, VT_CURMEMBERNUM) && - VerifyField(verifier, VT_PASSWORDSLOTMASK) && + VerifyField(verifier, VT_PASSWORDSLOTMASK) && VerifyOffset(verifier, VT_OWNER) && verifier.VerifyTable(owner()) && VerifyOffset(verifier, VT_ROOMGROUP) && @@ -1051,11 +1051,11 @@ struct RoomDataExternalBuilder { void add_privateSlotNum(u16 privateSlotNum) { fbb_.AddElement(RoomDataExternal::VT_PRIVATESLOTNUM, privateSlotNum, 0); } - void add_lobbyId(uint64_t lobbyId) { - fbb_.AddElement(RoomDataExternal::VT_LOBBYID, lobbyId, 0); + void add_lobbyId(u64 lobbyId) { + fbb_.AddElement(RoomDataExternal::VT_LOBBYID, lobbyId, 0); } - void add_roomId(uint64_t roomId) { - fbb_.AddElement(RoomDataExternal::VT_ROOMID, roomId, 0); + void add_roomId(u64 roomId) { + fbb_.AddElement(RoomDataExternal::VT_ROOMID, roomId, 0); } void add_openPublicSlotNum(u16 openPublicSlotNum) { fbb_.AddElement(RoomDataExternal::VT_OPENPUBLICSLOTNUM, openPublicSlotNum, 0); @@ -1069,8 +1069,8 @@ struct RoomDataExternalBuilder { void add_curMemberNum(u16 curMemberNum) { fbb_.AddElement(RoomDataExternal::VT_CURMEMBERNUM, curMemberNum, 0); } - void add_passwordSlotMask(uint64_t passwordSlotMask) { - fbb_.AddElement(RoomDataExternal::VT_PASSWORDSLOTMASK, passwordSlotMask, 0); + void add_passwordSlotMask(u64 passwordSlotMask) { + fbb_.AddElement(RoomDataExternal::VT_PASSWORDSLOTMASK, passwordSlotMask, 0); } void add_owner(flatbuffers::Offset owner) { fbb_.AddOffset(RoomDataExternal::VT_OWNER, owner); @@ -1108,13 +1108,13 @@ inline flatbuffers::Offset CreateRoomDataExternal( u32 worldId = 0, u16 publicSlotNum = 0, u16 privateSlotNum = 0, - uint64_t lobbyId = 0, - uint64_t roomId = 0, + u64 lobbyId = 0, + u64 roomId = 0, u16 openPublicSlotNum = 0, u16 maxSlot = 0, u16 openPrivateSlotNum = 0, u16 curMemberNum = 0, - uint64_t passwordSlotMask = 0, + u64 passwordSlotMask = 0, flatbuffers::Offset owner = 0, flatbuffers::Offset>> roomGroup = 0, u32 flagAttr = 0, @@ -1148,13 +1148,13 @@ inline flatbuffers::Offset CreateRoomDataExternalDirect( u32 worldId = 0, u16 publicSlotNum = 0, u16 privateSlotNum = 0, - uint64_t lobbyId = 0, - uint64_t roomId = 0, + u64 lobbyId = 0, + u64 roomId = 0, u16 openPublicSlotNum = 0, u16 maxSlot = 0, u16 openPrivateSlotNum = 0, u16 curMemberNum = 0, - uint64_t passwordSlotMask = 0, + u64 passwordSlotMask = 0, flatbuffers::Offset owner = 0, const std::vector> *roomGroup = nullptr, u32 flagAttr = 0, @@ -1431,8 +1431,8 @@ struct SearchRoomRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { u32 worldId() const { return GetField(VT_WORLDID, 0); } - uint64_t lobbyId() const { - return GetField(VT_LOBBYID, 0); + u64 lobbyId() const { + return GetField(VT_LOBBYID, 0); } u32 rangeFilter_startIndex() const { return GetField(VT_RANGEFILTER_STARTINDEX, 0); @@ -1459,7 +1459,7 @@ struct SearchRoomRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { return VerifyTableStart(verifier) && VerifyField(verifier, VT_OPTION) && VerifyField(verifier, VT_WORLDID) && - VerifyField(verifier, VT_LOBBYID) && + VerifyField(verifier, VT_LOBBYID) && VerifyField(verifier, VT_RANGEFILTER_STARTINDEX) && VerifyField(verifier, VT_RANGEFILTER_MAX) && VerifyField(verifier, VT_FLAGFILTER) && @@ -1485,8 +1485,8 @@ struct SearchRoomRequestBuilder { void add_worldId(u32 worldId) { fbb_.AddElement(SearchRoomRequest::VT_WORLDID, worldId, 0); } - void add_lobbyId(uint64_t lobbyId) { - fbb_.AddElement(SearchRoomRequest::VT_LOBBYID, lobbyId, 0); + void add_lobbyId(u64 lobbyId) { + fbb_.AddElement(SearchRoomRequest::VT_LOBBYID, lobbyId, 0); } void add_rangeFilter_startIndex(u32 rangeFilter_startIndex) { fbb_.AddElement(SearchRoomRequest::VT_RANGEFILTER_STARTINDEX, rangeFilter_startIndex, 0); @@ -1525,7 +1525,7 @@ inline flatbuffers::Offset CreateSearchRoomRequest( flatbuffers::FlatBufferBuilder &_fbb, s32 option = 0, u32 worldId = 0, - uint64_t lobbyId = 0, + u64 lobbyId = 0, u32 rangeFilter_startIndex = 0, u32 rangeFilter_max = 0, u32 flagFilter = 0, @@ -1551,7 +1551,7 @@ inline flatbuffers::Offset CreateSearchRoomRequestDirect( flatbuffers::FlatBufferBuilder &_fbb, s32 option = 0, u32 worldId = 0, - uint64_t lobbyId = 0, + u64 lobbyId = 0, u32 rangeFilter_startIndex = 0, u32 rangeFilter_max = 0, u32 flagFilter = 0, @@ -1686,8 +1686,8 @@ struct CreateJoinRoomRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers::Tabl u32 worldId() const { return GetField(VT_WORLDID, 0); } - uint64_t lobbyId() const { - return GetField(VT_LOBBYID, 0); + u64 lobbyId() const { + return GetField(VT_LOBBYID, 0); } u32 maxSlot() const { return GetField(VT_MAXSLOT, 0); @@ -1713,8 +1713,8 @@ struct CreateJoinRoomRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers::Tabl const flatbuffers::Vector> *groupConfig() const { return GetPointer> *>(VT_GROUPCONFIG); } - uint64_t passwordSlotMask() const { - return GetField(VT_PASSWORDSLOTMASK, 0); + u64 passwordSlotMask() const { + return GetField(VT_PASSWORDSLOTMASK, 0); } const flatbuffers::Vector> *allowedUser() const { return GetPointer> *>(VT_ALLOWEDUSER); @@ -1737,7 +1737,7 @@ struct CreateJoinRoomRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers::Tabl bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_WORLDID) && - VerifyField(verifier, VT_LOBBYID) && + VerifyField(verifier, VT_LOBBYID) && VerifyField(verifier, VT_MAXSLOT) && VerifyField(verifier, VT_FLAGATTR) && VerifyOffset(verifier, VT_ROOMBINATTRINTERNAL) && @@ -1757,7 +1757,7 @@ struct CreateJoinRoomRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers::Tabl VerifyOffset(verifier, VT_GROUPCONFIG) && verifier.VerifyVector(groupConfig()) && verifier.VerifyVectorOfTables(groupConfig()) && - VerifyField(verifier, VT_PASSWORDSLOTMASK) && + VerifyField(verifier, VT_PASSWORDSLOTMASK) && VerifyOffset(verifier, VT_ALLOWEDUSER) && verifier.VerifyVector(allowedUser()) && verifier.VerifyVectorOfStrings(allowedUser()) && @@ -1782,8 +1782,8 @@ struct CreateJoinRoomRequestBuilder { void add_worldId(u32 worldId) { fbb_.AddElement(CreateJoinRoomRequest::VT_WORLDID, worldId, 0); } - void add_lobbyId(uint64_t lobbyId) { - fbb_.AddElement(CreateJoinRoomRequest::VT_LOBBYID, lobbyId, 0); + void add_lobbyId(u64 lobbyId) { + fbb_.AddElement(CreateJoinRoomRequest::VT_LOBBYID, lobbyId, 0); } void add_maxSlot(u32 maxSlot) { fbb_.AddElement(CreateJoinRoomRequest::VT_MAXSLOT, maxSlot, 0); @@ -1809,8 +1809,8 @@ struct CreateJoinRoomRequestBuilder { void add_groupConfig(flatbuffers::Offset>> groupConfig) { fbb_.AddOffset(CreateJoinRoomRequest::VT_GROUPCONFIG, groupConfig); } - void add_passwordSlotMask(uint64_t passwordSlotMask) { - fbb_.AddElement(CreateJoinRoomRequest::VT_PASSWORDSLOTMASK, passwordSlotMask, 0); + void add_passwordSlotMask(u64 passwordSlotMask) { + fbb_.AddElement(CreateJoinRoomRequest::VT_PASSWORDSLOTMASK, passwordSlotMask, 0); } void add_allowedUser(flatbuffers::Offset>> allowedUser) { fbb_.AddOffset(CreateJoinRoomRequest::VT_ALLOWEDUSER, allowedUser); @@ -1845,7 +1845,7 @@ struct CreateJoinRoomRequestBuilder { inline flatbuffers::Offset CreateCreateJoinRoomRequest( flatbuffers::FlatBufferBuilder &_fbb, u32 worldId = 0, - uint64_t lobbyId = 0, + u64 lobbyId = 0, u32 maxSlot = 0, u32 flagAttr = 0, flatbuffers::Offset>> roomBinAttrInternal = 0, @@ -1854,7 +1854,7 @@ inline flatbuffers::Offset CreateCreateJoinRoomRequest( flatbuffers::Offset>> roomBinAttrExternal = 0, flatbuffers::Offset> roomPassword = 0, flatbuffers::Offset>> groupConfig = 0, - uint64_t passwordSlotMask = 0, + u64 passwordSlotMask = 0, flatbuffers::Offset>> allowedUser = 0, flatbuffers::Offset>> blockedUser = 0, flatbuffers::Offset> joinRoomGroupLabel = 0, @@ -1885,7 +1885,7 @@ inline flatbuffers::Offset CreateCreateJoinRoomRequest( inline flatbuffers::Offset CreateCreateJoinRoomRequestDirect( flatbuffers::FlatBufferBuilder &_fbb, u32 worldId = 0, - uint64_t lobbyId = 0, + u64 lobbyId = 0, u32 maxSlot = 0, u32 flagAttr = 0, const std::vector> *roomBinAttrInternal = nullptr, @@ -1894,7 +1894,7 @@ inline flatbuffers::Offset CreateCreateJoinRoomRequestDir const std::vector> *roomBinAttrExternal = nullptr, const std::vector *roomPassword = nullptr, const std::vector> *groupConfig = nullptr, - uint64_t passwordSlotMask = 0, + u64 passwordSlotMask = 0, const std::vector> *allowedUser = nullptr, const std::vector> *blockedUser = nullptr, const std::vector *joinRoomGroupLabel = nullptr, @@ -1941,8 +1941,8 @@ struct JoinRoomRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { VT_OPTDATA = 12, VT_TEAMID = 14 }; - uint64_t roomId() const { - return GetField(VT_ROOMID, 0); + u64 roomId() const { + return GetField(VT_ROOMID, 0); } const flatbuffers::Vector *roomPassword() const { return GetPointer *>(VT_ROOMPASSWORD); @@ -1961,7 +1961,7 @@ struct JoinRoomRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && - VerifyField(verifier, VT_ROOMID) && + VerifyField(verifier, VT_ROOMID) && VerifyOffset(verifier, VT_ROOMPASSWORD) && verifier.VerifyVector(roomPassword()) && VerifyOffset(verifier, VT_JOINROOMGROUPLABEL) && @@ -1979,8 +1979,8 @@ struct JoinRoomRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { struct JoinRoomRequestBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; - void add_roomId(uint64_t roomId) { - fbb_.AddElement(JoinRoomRequest::VT_ROOMID, roomId, 0); + void add_roomId(u64 roomId) { + fbb_.AddElement(JoinRoomRequest::VT_ROOMID, roomId, 0); } void add_roomPassword(flatbuffers::Offset> roomPassword) { fbb_.AddOffset(JoinRoomRequest::VT_ROOMPASSWORD, roomPassword); @@ -2011,7 +2011,7 @@ struct JoinRoomRequestBuilder { inline flatbuffers::Offset CreateJoinRoomRequest( flatbuffers::FlatBufferBuilder &_fbb, - uint64_t roomId = 0, + u64 roomId = 0, flatbuffers::Offset> roomPassword = 0, flatbuffers::Offset> joinRoomGroupLabel = 0, flatbuffers::Offset>> roomMemberBinAttrInternal = 0, @@ -2029,7 +2029,7 @@ inline flatbuffers::Offset CreateJoinRoomRequest( inline flatbuffers::Offset CreateJoinRoomRequestDirect( flatbuffers::FlatBufferBuilder &_fbb, - uint64_t roomId = 0, + u64 roomId = 0, const std::vector *roomPassword = nullptr, const std::vector *joinRoomGroupLabel = nullptr, const std::vector> *roomMemberBinAttrInternal = nullptr, @@ -2053,15 +2053,15 @@ struct LeaveRoomRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { VT_ROOMID = 4, VT_OPTDATA = 6 }; - uint64_t roomId() const { - return GetField(VT_ROOMID, 0); + u64 roomId() const { + return GetField(VT_ROOMID, 0); } const PresenceOptionData *optData() const { return GetPointer(VT_OPTDATA); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && - VerifyField(verifier, VT_ROOMID) && + VerifyField(verifier, VT_ROOMID) && VerifyOffset(verifier, VT_OPTDATA) && verifier.VerifyTable(optData()) && verifier.EndTable(); @@ -2071,8 +2071,8 @@ struct LeaveRoomRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { struct LeaveRoomRequestBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; - void add_roomId(uint64_t roomId) { - fbb_.AddElement(LeaveRoomRequest::VT_ROOMID, roomId, 0); + void add_roomId(u64 roomId) { + fbb_.AddElement(LeaveRoomRequest::VT_ROOMID, roomId, 0); } void add_optData(flatbuffers::Offset optData) { fbb_.AddOffset(LeaveRoomRequest::VT_OPTDATA, optData); @@ -2091,7 +2091,7 @@ struct LeaveRoomRequestBuilder { inline flatbuffers::Offset CreateLeaveRoomRequest( flatbuffers::FlatBufferBuilder &_fbb, - uint64_t roomId = 0, + u64 roomId = 0, flatbuffers::Offset optData = 0) { LeaveRoomRequestBuilder builder_(_fbb); builder_.add_roomId(roomId); @@ -2106,8 +2106,8 @@ struct SetRoomDataExternalRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers: VT_ROOMSEARCHABLEBINATTREXTERNAL = 8, VT_ROOMBINATTREXTERNAL = 10 }; - uint64_t roomId() const { - return GetField(VT_ROOMID, 0); + u64 roomId() const { + return GetField(VT_ROOMID, 0); } const flatbuffers::Vector> *roomSearchableIntAttrExternal() const { return GetPointer> *>(VT_ROOMSEARCHABLEINTATTREXTERNAL); @@ -2120,7 +2120,7 @@ struct SetRoomDataExternalRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers: } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && - VerifyField(verifier, VT_ROOMID) && + VerifyField(verifier, VT_ROOMID) && VerifyOffset(verifier, VT_ROOMSEARCHABLEINTATTREXTERNAL) && verifier.VerifyVector(roomSearchableIntAttrExternal()) && verifier.VerifyVectorOfTables(roomSearchableIntAttrExternal()) && @@ -2137,8 +2137,8 @@ struct SetRoomDataExternalRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers: struct SetRoomDataExternalRequestBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; - void add_roomId(uint64_t roomId) { - fbb_.AddElement(SetRoomDataExternalRequest::VT_ROOMID, roomId, 0); + void add_roomId(u64 roomId) { + fbb_.AddElement(SetRoomDataExternalRequest::VT_ROOMID, roomId, 0); } void add_roomSearchableIntAttrExternal(flatbuffers::Offset>> roomSearchableIntAttrExternal) { fbb_.AddOffset(SetRoomDataExternalRequest::VT_ROOMSEARCHABLEINTATTREXTERNAL, roomSearchableIntAttrExternal); @@ -2163,7 +2163,7 @@ struct SetRoomDataExternalRequestBuilder { inline flatbuffers::Offset CreateSetRoomDataExternalRequest( flatbuffers::FlatBufferBuilder &_fbb, - uint64_t roomId = 0, + u64 roomId = 0, flatbuffers::Offset>> roomSearchableIntAttrExternal = 0, flatbuffers::Offset>> roomSearchableBinAttrExternal = 0, flatbuffers::Offset>> roomBinAttrExternal = 0) { @@ -2177,7 +2177,7 @@ inline flatbuffers::Offset CreateSetRoomDataExternal inline flatbuffers::Offset CreateSetRoomDataExternalRequestDirect( flatbuffers::FlatBufferBuilder &_fbb, - uint64_t roomId = 0, + u64 roomId = 0, const std::vector> *roomSearchableIntAttrExternal = nullptr, const std::vector> *roomSearchableBinAttrExternal = nullptr, const std::vector> *roomBinAttrExternal = nullptr) { @@ -2202,8 +2202,8 @@ struct SetRoomDataInternalRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers: VT_PASSWORDSLOTMASK = 14, VT_OWNERPRIVILEGERANK = 16 }; - uint64_t roomId() const { - return GetField(VT_ROOMID, 0); + u64 roomId() const { + return GetField(VT_ROOMID, 0); } u32 flagFilter() const { return GetField(VT_FLAGFILTER, 0); @@ -2217,15 +2217,15 @@ struct SetRoomDataInternalRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers: const flatbuffers::Vector> *passwordConfig() const { return GetPointer> *>(VT_PASSWORDCONFIG); } - uint64_t passwordSlotMask() const { - return GetField(VT_PASSWORDSLOTMASK, 0); + u64 passwordSlotMask() const { + return GetField(VT_PASSWORDSLOTMASK, 0); } const flatbuffers::Vector *ownerPrivilegeRank() const { return GetPointer *>(VT_OWNERPRIVILEGERANK); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && - VerifyField(verifier, VT_ROOMID) && + VerifyField(verifier, VT_ROOMID) && VerifyField(verifier, VT_FLAGFILTER) && VerifyField(verifier, VT_FLAGATTR) && VerifyOffset(verifier, VT_ROOMBINATTRINTERNAL) && @@ -2234,7 +2234,7 @@ struct SetRoomDataInternalRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers: VerifyOffset(verifier, VT_PASSWORDCONFIG) && verifier.VerifyVector(passwordConfig()) && verifier.VerifyVectorOfTables(passwordConfig()) && - VerifyField(verifier, VT_PASSWORDSLOTMASK) && + VerifyField(verifier, VT_PASSWORDSLOTMASK) && VerifyOffset(verifier, VT_OWNERPRIVILEGERANK) && verifier.VerifyVector(ownerPrivilegeRank()) && verifier.EndTable(); @@ -2244,8 +2244,8 @@ struct SetRoomDataInternalRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers: struct SetRoomDataInternalRequestBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; - void add_roomId(uint64_t roomId) { - fbb_.AddElement(SetRoomDataInternalRequest::VT_ROOMID, roomId, 0); + void add_roomId(u64 roomId) { + fbb_.AddElement(SetRoomDataInternalRequest::VT_ROOMID, roomId, 0); } void add_flagFilter(u32 flagFilter) { fbb_.AddElement(SetRoomDataInternalRequest::VT_FLAGFILTER, flagFilter, 0); @@ -2259,8 +2259,8 @@ struct SetRoomDataInternalRequestBuilder { void add_passwordConfig(flatbuffers::Offset>> passwordConfig) { fbb_.AddOffset(SetRoomDataInternalRequest::VT_PASSWORDCONFIG, passwordConfig); } - void add_passwordSlotMask(uint64_t passwordSlotMask) { - fbb_.AddElement(SetRoomDataInternalRequest::VT_PASSWORDSLOTMASK, passwordSlotMask, 0); + void add_passwordSlotMask(u64 passwordSlotMask) { + fbb_.AddElement(SetRoomDataInternalRequest::VT_PASSWORDSLOTMASK, passwordSlotMask, 0); } void add_ownerPrivilegeRank(flatbuffers::Offset> ownerPrivilegeRank) { fbb_.AddOffset(SetRoomDataInternalRequest::VT_OWNERPRIVILEGERANK, ownerPrivilegeRank); @@ -2279,12 +2279,12 @@ struct SetRoomDataInternalRequestBuilder { inline flatbuffers::Offset CreateSetRoomDataInternalRequest( flatbuffers::FlatBufferBuilder &_fbb, - uint64_t roomId = 0, + u64 roomId = 0, u32 flagFilter = 0, u32 flagAttr = 0, flatbuffers::Offset>> roomBinAttrInternal = 0, flatbuffers::Offset>> passwordConfig = 0, - uint64_t passwordSlotMask = 0, + u64 passwordSlotMask = 0, flatbuffers::Offset> ownerPrivilegeRank = 0) { SetRoomDataInternalRequestBuilder builder_(_fbb); builder_.add_passwordSlotMask(passwordSlotMask); @@ -2299,12 +2299,12 @@ inline flatbuffers::Offset CreateSetRoomDataInternal inline flatbuffers::Offset CreateSetRoomDataInternalRequestDirect( flatbuffers::FlatBufferBuilder &_fbb, - uint64_t roomId = 0, + u64 roomId = 0, u32 flagFilter = 0, u32 flagAttr = 0, const std::vector> *roomBinAttrInternal = nullptr, const std::vector> *passwordConfig = nullptr, - uint64_t passwordSlotMask = 0, + u64 passwordSlotMask = 0, const std::vector *ownerPrivilegeRank = nullptr) { auto roomBinAttrInternal__ = roomBinAttrInternal ? _fbb.CreateVector>(*roomBinAttrInternal) : 0; auto passwordConfig__ = passwordConfig ? _fbb.CreateVector>(*passwordConfig) : 0; @@ -2325,15 +2325,15 @@ struct GetRoomDataInternalRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers: VT_ROOMID = 4, VT_ATTRID = 6 }; - uint64_t roomId() const { - return GetField(VT_ROOMID, 0); + u64 roomId() const { + return GetField(VT_ROOMID, 0); } const flatbuffers::Vector *attrId() const { return GetPointer *>(VT_ATTRID); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && - VerifyField(verifier, VT_ROOMID) && + VerifyField(verifier, VT_ROOMID) && VerifyOffset(verifier, VT_ATTRID) && verifier.VerifyVector(attrId()) && verifier.EndTable(); @@ -2343,8 +2343,8 @@ struct GetRoomDataInternalRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers: struct GetRoomDataInternalRequestBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; - void add_roomId(uint64_t roomId) { - fbb_.AddElement(GetRoomDataInternalRequest::VT_ROOMID, roomId, 0); + void add_roomId(u64 roomId) { + fbb_.AddElement(GetRoomDataInternalRequest::VT_ROOMID, roomId, 0); } void add_attrId(flatbuffers::Offset> attrId) { fbb_.AddOffset(GetRoomDataInternalRequest::VT_ATTRID, attrId); @@ -2363,7 +2363,7 @@ struct GetRoomDataInternalRequestBuilder { inline flatbuffers::Offset CreateGetRoomDataInternalRequest( flatbuffers::FlatBufferBuilder &_fbb, - uint64_t roomId = 0, + u64 roomId = 0, flatbuffers::Offset> attrId = 0) { GetRoomDataInternalRequestBuilder builder_(_fbb); builder_.add_roomId(roomId); @@ -2373,7 +2373,7 @@ inline flatbuffers::Offset CreateGetRoomDataInternal inline flatbuffers::Offset CreateGetRoomDataInternalRequestDirect( flatbuffers::FlatBufferBuilder &_fbb, - uint64_t roomId = 0, + u64 roomId = 0, const std::vector *attrId = nullptr) { auto attrId__ = attrId ? _fbb.CreateVector(*attrId) : 0; return CreateGetRoomDataInternalRequest( @@ -2518,8 +2518,8 @@ struct GetPingInfoResponse FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table u32 worldId() const { return GetField(VT_WORLDID, 0); } - uint64_t roomId() const { - return GetField(VT_ROOMID, 0); + u64 roomId() const { + return GetField(VT_ROOMID, 0); } u32 rtt() const { return GetField(VT_RTT, 0); @@ -2528,7 +2528,7 @@ struct GetPingInfoResponse FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table return VerifyTableStart(verifier) && VerifyField(verifier, VT_SERVERID) && VerifyField(verifier, VT_WORLDID) && - VerifyField(verifier, VT_ROOMID) && + VerifyField(verifier, VT_ROOMID) && VerifyField(verifier, VT_RTT) && verifier.EndTable(); } @@ -2543,8 +2543,8 @@ struct GetPingInfoResponseBuilder { void add_worldId(u32 worldId) { fbb_.AddElement(GetPingInfoResponse::VT_WORLDID, worldId, 0); } - void add_roomId(uint64_t roomId) { - fbb_.AddElement(GetPingInfoResponse::VT_ROOMID, roomId, 0); + void add_roomId(u64 roomId) { + fbb_.AddElement(GetPingInfoResponse::VT_ROOMID, roomId, 0); } void add_rtt(u32 rtt) { fbb_.AddElement(GetPingInfoResponse::VT_RTT, rtt, 0); @@ -2565,7 +2565,7 @@ inline flatbuffers::Offset CreateGetPingInfoResponse( flatbuffers::FlatBufferBuilder &_fbb, u16 serverId = 0, u32 worldId = 0, - uint64_t roomId = 0, + u64 roomId = 0, u32 rtt = 0) { GetPingInfoResponseBuilder builder_(_fbb); builder_.add_roomId(roomId); @@ -2583,8 +2583,8 @@ struct SendRoomMessageRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers::Tab VT_MSG = 10, VT_OPTION = 12 }; - uint64_t roomId() const { - return GetField(VT_ROOMID, 0); + u64 roomId() const { + return GetField(VT_ROOMID, 0); } u8 castType() const { return GetField(VT_CASTTYPE, 0); @@ -2600,7 +2600,7 @@ struct SendRoomMessageRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers::Tab } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && - VerifyField(verifier, VT_ROOMID) && + VerifyField(verifier, VT_ROOMID) && VerifyField(verifier, VT_CASTTYPE) && VerifyOffset(verifier, VT_DST) && verifier.VerifyVector(dst()) && @@ -2614,8 +2614,8 @@ struct SendRoomMessageRequest FLATBUFFERS_FINAL_CLASS : private flatbuffers::Tab struct SendRoomMessageRequestBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; - void add_roomId(uint64_t roomId) { - fbb_.AddElement(SendRoomMessageRequest::VT_ROOMID, roomId, 0); + void add_roomId(u64 roomId) { + fbb_.AddElement(SendRoomMessageRequest::VT_ROOMID, roomId, 0); } void add_castType(u8 castType) { fbb_.AddElement(SendRoomMessageRequest::VT_CASTTYPE, castType, 0); @@ -2643,7 +2643,7 @@ struct SendRoomMessageRequestBuilder { inline flatbuffers::Offset CreateSendRoomMessageRequest( flatbuffers::FlatBufferBuilder &_fbb, - uint64_t roomId = 0, + u64 roomId = 0, u8 castType = 0, flatbuffers::Offset> dst = 0, flatbuffers::Offset> msg = 0, @@ -2659,7 +2659,7 @@ inline flatbuffers::Offset CreateSendRoomMessageRequest( inline flatbuffers::Offset CreateSendRoomMessageRequestDirect( flatbuffers::FlatBufferBuilder &_fbb, - uint64_t roomId = 0, + u64 roomId = 0, u8 castType = 0, const std::vector *dst = nullptr, const std::vector *msg = nullptr, diff --git a/rpcs3/Emu/RSX/VK/VKHelpers.cpp b/rpcs3/Emu/RSX/VK/VKHelpers.cpp index 06c381fcfa..c7022a1019 100644 --- a/rpcs3/Emu/RSX/VK/VKHelpers.cpp +++ b/rpcs3/Emu/RSX/VK/VKHelpers.cpp @@ -1124,7 +1124,7 @@ namespace vk } VKAPI_ATTR VkBool32 VKAPI_CALL dbgFunc(VkFlags msgFlags, VkDebugReportObjectTypeEXT objType, - uint64_t srcObject, usz location, s32 msgCode, + u64 srcObject, usz location, s32 msgCode, const char *pLayerPrefix, const char *pMsg, void *pUserData) { if (msgFlags & VK_DEBUG_REPORT_ERROR_BIT_EXT) @@ -1147,7 +1147,7 @@ namespace vk } VkBool32 BreakCallback(VkFlags msgFlags, VkDebugReportObjectTypeEXT objType, - uint64_t srcObject, usz location, s32 msgCode, + u64 srcObject, usz location, s32 msgCode, const char *pLayerPrefix, const char *pMsg, void *pUserData) { #ifdef _WIN32 diff --git a/rpcs3/Emu/RSX/VK/VKHelpers.h b/rpcs3/Emu/RSX/VK/VKHelpers.h index 26ade18818..85c018d6f9 100644 --- a/rpcs3/Emu/RSX/VK/VKHelpers.h +++ b/rpcs3/Emu/RSX/VK/VKHelpers.h @@ -53,11 +53,11 @@ namespace vk VKAPI_ATTR void VKAPI_CALL mem_free(void *pUserData, void *pMemory); VKAPI_ATTR VkBool32 VKAPI_CALL dbgFunc(VkFlags msgFlags, VkDebugReportObjectTypeEXT objType, - uint64_t srcObject, usz location, s32 msgCode, + u64 srcObject, usz location, s32 msgCode, const char *pLayerPrefix, const char *pMsg, void *pUserData); VkBool32 BreakCallback(VkFlags msgFlags, VkDebugReportObjectTypeEXT objType, - uint64_t srcObject, usz location, s32 msgCode, + u64 srcObject, usz location, s32 msgCode, const char *pLayerPrefix, const char *pMsg, void *pUserData); diff --git a/rpcs3/Emu/RSX/rsx_utils.h b/rpcs3/Emu/RSX/rsx_utils.h index 167ed16372..c548701ff9 100644 --- a/rpcs3/Emu/RSX/rsx_utils.h +++ b/rpcs3/Emu/RSX/rsx_utils.h @@ -26,7 +26,7 @@ namespace rsx using utils::page_end; using utils::next_page; - using flags64_t = uint64_t; + using flags64_t = u64; using flags32_t = u32; using flags16_t = u16; using flags8_t = u8; diff --git a/rpcs3/util/atomic2.hpp b/rpcs3/util/atomic2.hpp index df95c20461..da0a24541c 100644 --- a/rpcs3/util/atomic2.hpp +++ b/rpcs3/util/atomic2.hpp @@ -9,7 +9,7 @@ namespace stx class alignas(16) atomic2 { // First 64-bit value is an actual value, second one is an allocated control block pointer (if not zero) - std::int64_t m_data[2]{}; + s64 m_data[2]{}; friend class multi_cas_record; @@ -29,7 +29,7 @@ namespace stx // Simply observe the state u64 load() const noexcept { - return atomic_storage::load(m_data[0]); + return atomic_storage::load(m_data[0]); } // void wait(u64 old_value) const noexcept; @@ -41,8 +41,8 @@ namespace stx class multi_cas_item { atomic2* m_addr; - std::uint64_t m_old; - std::uint64_t m_new; + u64 m_old; + u64 m_new; friend class multi_cas_record; @@ -73,10 +73,10 @@ namespace stx class alignas(64) multi_cas_record { // Ref counter and Multi-CAS state - atomic_t m_state; + atomic_t m_state; // Total number of CASes - std::uint64_t m_count; + u64 m_count; // Support up to 10 CASes multi_cas_item m_list[10]; diff --git a/rpcs3/util/logs.hpp b/rpcs3/util/logs.hpp index cb77fea460..1c21872b47 100644 --- a/rpcs3/util/logs.hpp +++ b/rpcs3/util/logs.hpp @@ -11,8 +11,6 @@ namespace logs { - using u64 = std::uint64_t; - enum class level : unsigned { always, // Highest log severity (cannot be disabled)