Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inconsistencies with UserId #906

Merged
merged 2 commits into from
Feb 2, 2020
Merged

Fix inconsistencies with UserId #906

merged 2 commits into from
Feb 2, 2020

Conversation

marysaka
Copy link
Contributor

The account user id isn't an UUID. This PR adds a new UserId type with
the correct value ordering to avoid mismatch with LibHac's Uid. This also fix
an hardcoded value of the UserId.

As the userid has been invalid for quite some time (and to avoid forcing
users to their recreate saves), the userid has been changed to "00000000000000010000000000000000".

Also implement a stub for IApplicationFunctions::GetSaveDataSize. (see
the sources for the reason of the stub)

Fix #626

@marysaka marysaka added bug Something isn't working enhancement New feature or request fix Fix something service:am Related to the am module (Ryujinx.HLE.HOS.Services.Am) service:account Related to the account module (Ryujinx.HLE.HOS.Services.Account) service:friend Related to the friend module (Ryujinx.HLE.HOS.Services.Friend) service:sdb Related to the sdb module (Ryujinx.HLE.HOS.Services.Sdb) labels Jan 25, 2020
Copy link
Member

@gdkchan gdkchan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks, nice catch.

Thog added 2 commits February 1, 2020 22:35
The account user id isn't an UUID. This PR adds a new UserId type with
the correct value ordering to avoid mismatch with LibHac's Uid. This also fix
an hardcoded value of the UserId.

As the userid has been invalid for quite some time (and to avoid forcing
users to their recreate saves), the userid has been changed to "00000000000000010000000000000000".

Also implement a stub for IApplicationFunctions::GetSaveDataSize. (see
the sources for the reason)

Fix #626
@marysaka marysaka requested a review from AcK77 February 1, 2020 21:41
@marysaka
Copy link
Contributor Author

marysaka commented Feb 1, 2020

Ready for reviews

Copy link
Member

@AcK77 AcK77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm! Thanks!

@jduncanator jduncanator merged commit ea14a95 into Ryujinx:master Feb 2, 2020
@marysaka marysaka deleted the fix/account-user-id-confusion branch April 30, 2020 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request fix Fix something service:account Related to the account module (Ryujinx.HLE.HOS.Services.Account) service:am Related to the am module (Ryujinx.HLE.HOS.Services.Am) service:friend Related to the friend module (Ryujinx.HLE.HOS.Services.Friend) service:sdb Related to the sdb module (Ryujinx.HLE.HOS.Services.Sdb)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

appletOE IApplicationFunctions: 26 (GetSaveDataSize) not implemented
4 participants