Commit Graph

40 Commits (92fcc6d15a1bf2f3db4e8409bf751a5ec08fa32e)

Author SHA1 Message Date
David Marcec 92fcc6d15a Implement acc:TrySelectUserWithoutInteraction
Needed for Shantae - Half-Genie Hero - Ultimate Edition!
7 years ago
Lioncash 1e3b139cd7 service/acc: Move fallback image to file scope
This is just flat data, so it doesn't really need to be in the function
itself. This also allows deduplicating the constant for the backup size
in GetImageSize().
7 years ago
Lioncash 6f00628564 service/acc: Silence compiler warnings
Silences compiler warnings related to truncation. This also introduces a
small helper function to perform the clamping of the image size.
7 years ago
Lioncash 3ec90dc6ef service/acc: Early return in failure case in LoadImage()
Allows unindenting the other branch's code.
7 years ago
Zach Hilman 45f2a2fe29 acc: Fix account UUID duplication error 7 years ago
Zach Hilman 702622b8f1 profile_manager: Load user icons, names, and UUIDs from system save 7 years ago
Zach Hilman 19c5cf9c63 acc: Load user images from config dir 7 years ago
David Marcec cbc7ad8f6d Fixed GetAccountId stub, Added error code for OpenDirectory and added ActivateNpadWithRevision
With these, `Nintendo Entertainment System - Nintendo Switch Online` loads
7 years ago
David Marcec 528e5cee67 Implemented GetImageSize 7 years ago
Lioncash 609cb04f3f acc: Replace profile_manager include with a forward declaration
This is only used in a shared_ptr, so we can forward declare it.
7 years ago
Lioncash eb88fedc5d acc: Simplify WriteBuffer call within LoadImage()
We have an overload of WriteBuffer that accepts containers that satisfy
the ContiguousContainer concept, which std::array does, so we only need
to pass in the array itself.
7 years ago
Lioncash f5b132676f acc: Correct IProfile's constructor initializer list order
Arranges them in the order the members would be initialized
7 years ago
Lioncash 0fcdf37917 acc: Remove unused DEFAULT_USER_ID
This is no longer used, so it can be removed.
7 years ago
David Marcec 448290bee4 Removed un-needed count from ListOpenUsers and ListAllUsers 7 years ago
David Marcec 0b6f8ba51e Code cleanup for profile manager 7 years ago
David Marcec b8e70faa2d Added GetOpenUserCount 7 years ago
David Marcec c3013c7c9c Added missing ListAllUsers count 7 years ago
David Marcec 82fa0bcea7 First round of account changes 7 years ago
David Marcec 6aa8ee6943 Refactored profile manager sharing 7 years ago
David Marcec b76ddb7647 Merge remote-tracking branch 'origin/master' into better-account 7 years ago
David Marcec 2a3b335b15 Added IsUserRegistrationRequestPermitted 7 years ago
David Marcec 75169c7570 Inital pass of account backend implementation
This commit verified working on puyo
7 years ago
David Marcec 03d7faf583 GetProfileBase and GetProfileBaseAndData added 7 years ago
David Marcec 6f691e71bf began initial implementation of "ProfileManager" 7 years ago
mailwl c0d44d3b2a Service/Account: stub LoadImage function 7 years ago
David Marcec 5f8d253ce0 Switched uuids from u128 to new UUID struct 7 years ago
bunnei 2bc296801a
acc: Stub GetUserCount. (#973)
- Used by Pokken Tournament DX.
7 years ago
David c1d54f4aea Added ability to change username & language code in the settings ui. Added IProfile::Get and SET::GetLanguageCode for libnx tests (#851) 7 years ago
Lioncash 1d755abce4 core: Make converting constructors explicit where applicable
Avoids unwanted implicit conversions. Thankfully, given the large amount
of cleanup in past PRs, only this tiny amount is left over to cover.
7 years ago
Subv 9c7321fe6d HLE/ACC: Stub IManagerForApplication::GetAccountId to return an error.
And make IManagerForApplication::CheckAvailability always return false.
Returning a bogus id from GetAccountId causes games to crash on boot.
We should investigate this with a hwtest and either stub it properly or implement it.
7 years ago
bunnei af08034c71
Merge pull request #728 from Subv/acc_profile
HLE/ACC: Change the default user id and small improvements to the way we handle profiles
7 years ago
Subv 05549e45c5 HLE/ACC: Return an IProfile that is consistent with what was requested.
The default username for now is "yuzu".
We should eventually allow the creation of users in the emulator and have the ability to modify their parameters.
7 years ago
Subv 50e2777724 HLE/ACC: Change the default user id to be consistent with what we tell games on startup.
In IApplicationFunctions::PopLaunchParameter we tell the games that they were launched as user id 1.
7 years ago
Subv b102815f1f HLE/ACC: Write a single whole user id in ListAllUsers and ListOpenUsers.
We only emulate a single user id for now.
7 years ago
James Rowe 638956aa81 Rename logging macro back to LOG_* 7 years ago
Lioncash f85d880ac6
acc: Move logging macros over to new fmt-compatible ones 7 years ago
Lioncash ccca5e7c28 service: Use nested namespace specifiers where applicable
Tidies up namespace declarations
7 years ago
Hexagon12 e52a87b98a Various service name fixes - part 2 (rebased) (#322)
* Updated ACC with more service names

* Updated SVC with more service names

* Updated set with more service names

* Updated sockets with more service names

* Updated SPL with more service names

* Updated time with more service names

* Updated vi with more service names
7 years ago
mailwl 3769a80fac Service/ACC: convert to module, add acc:aa, acc:su, acc:u1 services 7 years ago
bunnei 4b156d2e64 acc_u0: Add IPC interface and stub InitializeApplicationInfo. 7 years ago