Morph
7a504a9365
acc: Stub LoadOpenContext
This is used in multiple games such as:
- Clubhouse Games: 51 Worldwide Classics
- Grandia HD Collection
- XCOM 2 Collection
- Baldur's Gate 1/2
- Dr Kawashima's Brain Training
- Super Mario 3D All-Stars
5 years ago
Lioncash
c4ed791164
common/fileutil: Convert namespace to Common::FS
Migrates a remaining common file over to the Common namespace, making it
consistent with the rest of common files.
This also allows for high-traffic FS related code to alias the
filesystem function namespace as
namespace FS = Common::FS;
for more concise typing.
5 years ago
David
9b75481755
ipc: Allow all trivially copyable objects to be passed directly into WriteBuffer ( #4465 )
* ipc: Allow all trivially copyable objects to be passed directly into WriteBuffer
With the support of C++20, we can use concepts to deduce if a type is an STL container or not.
* More agressive concept for stl containers
* Add -fconcepts
* Move to common namespace
* Add Common::IsBaseOf
5 years ago
David Marcec
f0baf2abf2
acc: ListOpenContextStoredUsers partial stub
Needed by Baldur's Gate 1/2
6 years ago
VolcaEM
e193aa3f53
account: Update function tables and add missing classes ( #4145 )
* account: Update function tables and add missing classes
* clang-format
* Add missing "public"
* Add missing public again
* Add missing final
6 years ago
David Marcec
1417849a2b
acc: Return a unique value per account for GetAccountId
6 years ago
David Marcec
1fbc341aba
acc: Fix InitializeApplicationInfo
We're not suppose to pop a u64, should just read the sent pid and check that
6 years ago
David Marcec
fdbeb90bd0
Updated comment to reflect ListQualifiedUsers better
6 years ago
David Marcec
a17813c4f4
account: ListQualifiedUsers
Closes #2844
6 years ago
bunnei
5135b74179
core: Initialize several structs that make use of Common::UUID.
6 years ago
Lioncash
f11b87ebf1
service: Resolve sign conversion errors
These are fairly trivial to resolve and most of the changes entail
using RESULT_UNKNOWN over ResultCode(-1).
6 years ago
FearlessTobi
82979296d2
service/acc: Lower log severity from INFO to DEBUG
According to ogniK, this should have always been Debug and not Info.
6 years ago
Zach Hilman
471b2a4211
acc_su: Implement GetProfileEditor (205)
Takes a UUID of a user and provides and interface that allows RW access to user data/settings.
7 years ago
Zach Hilman
812fb30821
acc: Implement IProfileEditor-specific commands 'Store' and 'StoreWithImage'
Verified with IDA
7 years ago
Zach Hilman
39f6d57c34
acc: Add IProfileCommon for IProfile and IProfileEditor
Since 2/3 of the commands are shared, this is likely how its done on HW.
7 years ago
David Marcec
fd6549be73
Addressed issues
7 years ago
David Marcec
0b03e8a98f
Implemented InitializeApplicationInfo & InitializeApplicationInfoRestricted
InitializeApplicationInfoRestricted will need further implementation as it's checking for other user requirements about the game. As we're emulating, we're assuming the user owns the game so we skip these checks currently, implementation will need to be added further on
7 years ago
Lioncash
82cd87f6c2
service/acc: Silence truncation warnings
The sanitizing function ensures that the returned type is always the
correct type. This eliminates warnings without extra casts.
7 years ago
David Marcec
6ca20ad7ba
Addressed issues
7 years ago
David Marcec
5fb6781c61
Cleanup
7 years ago
David Marcec
335127af69
Impl'd IsUserAccountSwitchLocked, SetAudioOutVolume, GetAudioOutVolume & Partial impl of GetAccumulatedSuspendedTickChangedEvent
IPC-100 was changed to InitializeApplicationInfoOld instead of InitializeApplicationInfo. IPC-150 makes an indentical call to IPC-100 however does extra processing. They should not have the same name as it's quite confusing to debug.
7 years ago
Zach Hilman
11f2f0f45c
constants: Extract backup JPEG used by account services
7 years ago
Zach Hilman
ca5638a142
common: Extract UUID to its own class
Since the Mii database uses UUIDs very similar to the Accounts database, it makes no sense to not share code between them.
7 years ago
Lioncash
ca96dc4676
service: Update service function tables
Updates function tables based off information from SwitchBrew.
7 years ago
Zach Hilman
dac0c33fd2
profile_manager: Save and load ProfileData from disk
The ProfileData is a 0x80-sized structure that stores various pieces of miscellaneous data for the account.
7 years ago
David Marcec
a2cc3b10bb
Changed logging to be "Log before execution", Added more error logging, all services should now log on some level
7 years ago
Lioncash
cd47af8af0
service/acc: Correct error case within TrySelectUserWithoutInteraction()
empty() in this case will always return false, since the returned
container is a std::array. Instead, check if all given users are invalid
before returning the error code.
7 years ago
David Marcec
ad45d68871
fixed spelling error
7 years ago
David Marcec
49cb4fa37b
Added missing log
7 years ago
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
2a3b335b15
Added IsUserRegistrationRequestPermitted
7 years ago
David Marcec
75169c7570
Inital pass of account backend implementation
This commit verified working on puyo
7 years ago