aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/friend/friend.cpp
AgeCommit message (Collapse)Author
2024-02-23service: friend: Add GetFriendCount, GetNewlyFriendCount, ↵Narr the Reg
GetReceivedFriendRequestCount, GetPlayHistoryStatistics, GetReceivedFriendInvitationCountCache for QLaunch
2024-01-08Fix typos in src/core (#12625)Viktor Szépe
* Fix typos in src/core * Fix typo correction * Fix indentation of MemoryStateNames * Fix indent
2023-11-21Stub CheckBlockedUserListAvailabilitydaisymlleung
2023-03-06hle: rename legacy errors to ResultsLiam
2023-03-01service: move hle_ipc from kernelLiam
2023-02-21service: refactor server architectureLiam
Converts services to have their own processes
2022-10-07IFriendService: stub CheckFriendListAvailabilityLiam
2022-04-23general: Convert source file copyright comments over to SPDXMorph
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-02-05general: Rename NewUUID to UUID, and remove the previous UUID implMorph
This completes the removal of the old UUID implementation.
2022-02-05service: Migrate to the new UUID implementationMorph
2022-01-21service/friend: Update unknown function table entriesLioncash
2021-11-30service: friend: Implement GetCompletionEventMorph
- Used by Super Bomberman R Online
2021-10-01service: Replace service event creation with ServiceContext::CreateEventMorph
The service context helps to manage all created events and allows us to close them upon destruction.
2021-07-26common: uuid: Return a lower-case hex string in FormatMorph
2021-07-14service: Append service name prefix to common filenamesMorph
2021-06-02general: Replace RESULT_SUCCESS with ResultSuccessMorph
Transition to PascalCase for result names.
2021-05-05hle: kernel: Ensure all kernel objects with KAutoObject are properly created.bunnei
2021-05-05hle: kernel: Migrate KEvent to KAutoObject.bunnei
2021-04-09Merge pull request #6113 from german77/playhistorybunnei
Friend: Stub GetPlayHistoryRegistrationKey
2021-03-27service: friend: Change logging class from ACC to FriendMorph
2021-03-27Friend: Stub GetPlayHistoryRegistrationKeygerman77
2021-02-05hle: kernel: Reimplement KReadableEvent and KWritableEvent.bunnei
2021-02-05hle: kernel: Rename WritableEvent to KWritableEvent.bunnei
2021-02-05hle: kernel: Rename ReadableEvent to KReadableEvent.bunnei
2020-12-07core: Remove unnecessary enum casts in log callsLioncash
Follows the video core PR. fmt doesn't require casts for enum classes anymore, so we can remove quite a few casts.
2020-11-26service: Eliminate usages of the global system instanceLioncash
Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
2020-11-08ipc_helpers: Remove usage of the global system instanceLioncash
Resolves numerous deprecation warnings throughout the codebase due to inclusion of this header. Now building core should be significantly less noisy (and also relying on less global state). This also uncovered quite a few modules that were relying on indirect includes, which have also been fixed.
2020-06-27friend: Update function tableVolcaEM
2020-04-20service: Update function tablesLioncash
Keeps the service function tables up to date. Updated based off information on SwitchBrew.
2020-04-14service: friend: Stub IFriendService::GetBlockedUserListIds.bunnei
- This is safe to stub, as there should be no adverse consequences from reporting no blocked users.
2020-01-04core: Initialize several structs that make use of Common::UUID.bunnei
2019-11-12service: Update function tablesLioncash
Keeps the function tables up to date. Updated based off information from Switchbrew.
2019-11-03kernel: events: Remove ResetType::Automatic.bunnei
- This does not actually seem to exist in the real kernel - games reset these automatically. # Conflicts: # src/core/hle/service/am/applets/applets.cpp # src/core/hle/service/filesystem/fsp_srv.cpp
2019-10-04service/friend: Remove unused fieldReinUsesLisp
2019-09-22Deglobalize System: FriendDavid Marcec
2019-07-09IFriendService::GetFriendListDavid Marcec
We don't have any friends implemented in Yuzu yet so it doesn't make sense to return any friends. For now we'll be returning 0 friends however the information provided will allow a proper implementation of this cmd when needed.
2019-06-28Addressed issuesDavid Marcec
2019-06-25SizedNotificationInfo should be 0x10 bytes, user_uuid is incorrect, this ↵David Marcec
should be the users account id
2019-06-25fixed spelling errors and fixed issue with Pop not returning the ↵David Marcec
SizedNotificationInfo
2019-06-24Implemented INotificationServiceDavid Marcec
2019-04-11service: Update service function tablesLioncash
Updates function tables based off information from SwitchBrew.
2018-09-10hle/service: Default constructors and destructors in the cpp file where ↵Lioncash
applicable When a destructor isn't defaulted into a cpp file, it can cause the use of forward declarations to seemingly fail to compile for non-obvious reasons. It also allows inlining of the construction/destruction logic all over the place where a constructor or destructor is invoked, which can lead to code bloat. This isn't so much a worry here, given the services won't be created and destroyed frequently. The cause of the above mentioned non-obvious errors can be demonstrated as follows: ------- Demonstrative example, if you know how the described error happens, skip forwards ------- Assume we have the following in the header, which we'll call "thing.h": \#include <memory> // Forward declaration. For example purposes, assume the definition // of Object is in some header named "object.h" class Object; class Thing { public: // assume no constructors or destructors are specified here, // or the constructors/destructors are defined as: // // Thing() = default; // ~Thing() = default; // // ... Some interface member functions would be defined here private: std::shared_ptr<Object> obj; }; If this header is included in a cpp file, (which we'll call "main.cpp"), this will result in a compilation error, because even though no destructor is specified, the destructor will still need to be generated by the compiler because std::shared_ptr's destructor is *not* trivial (in other words, it does something other than nothing), as std::shared_ptr's destructor needs to do two things: 1. Decrement the shared reference count of the object being pointed to, and if the reference count decrements to zero, 2. Free the Object instance's memory (aka deallocate the memory it's pointing to). And so the compiler generates the code for the destructor doing this inside main.cpp. Now, keep in mind, the Object forward declaration is not a complete type. All it does is tell the compiler "a type named Object exists" and allows us to use the name in certain situations to avoid a header dependency. So the compiler needs to generate destruction code for Object, but the compiler doesn't know *how* to destruct it. A forward declaration doesn't tell the compiler anything about Object's constructor or destructor. So, the compiler will issue an error in this case because it's undefined behavior to try and deallocate (or construct) an incomplete type and std::shared_ptr and std::unique_ptr make sure this isn't the case internally. Now, if we had defaulted the destructor in "thing.cpp", where we also include "object.h", this would never be an issue, as the destructor would only have its code generated in one place, and it would be in a place where the full class definition of Object would be visible to the compiler. ---------------------- End example ---------------------------- Given these service classes are more than certainly going to change in the future, this defaults the constructors and destructors into the relevant cpp files to make the construction and destruction of all of the services consistent and unlikely to run into cases where forward declarations are indirectly causing compilation errors. It also has the plus of avoiding the need to rebuild several services if destruction logic changes, since it would only be necessary to recompile the single cpp file.
2018-08-12Stub UpdateUserPresenceDavid Marcec
Needed for Retro City Rampage to go in game
2018-08-11friend: Stub DeclareCloseOnlinePlaySession.bunnei
- Used by Splatoon 2.
2018-08-11friend: Fix CreateFriendService to return an IFriendService interface.bunnei
2018-07-24friend: Add friend:m, friend:s, and friend:v servicesLioncash
Given we already have friend:a and friend:u, we should add the remaining services as well.
2018-07-24friend: Deduplicate interfacesLioncash
2018-07-02Rename logging macro back to LOG_*James Rowe
2018-04-24friend: Move logging macros over to new fmt-compatible onesLioncash
2018-04-19service: Use nested namespace specifiers where applicableLioncash
Tidies up namespace declarations