Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
dc0a137e
There was an error fetching the commit references. Please try again later.
Commit
dc0a137e
authored
7 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
acc_u0: Implement ListAllUsers.
parent
db11c9a0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/hle/service/acc/acc_u0.cpp
+14
-2
14 additions, 2 deletions
src/core/hle/service/acc/acc_u0.cpp
src/core/hle/service/acc/acc_u0.h
+1
-0
1 addition, 0 deletions
src/core/hle/service/acc/acc_u0.h
with
15 additions
and
2 deletions
src/core/hle/service/acc/acc_u0.cpp
+
14
−
2
View file @
dc0a137e
...
...
@@ -9,6 +9,9 @@
namespace
Service
{
namespace
Account
{
using
Uid
=
std
::
array
<
u64
,
2
>
;
static
constexpr
Uid
DEFAULT_USER_ID
{
0x10ull
,
0x20ull
};
class
IProfile
final
:
public
ServiceFramework
<
IProfile
>
{
public:
IProfile
()
:
ServiceFramework
(
"IProfile"
)
{
...
...
@@ -61,6 +64,15 @@ void ACC_U0::GetUserExistence(Kernel::HLERequestContext& ctx) {
rb
.
Push
(
true
);
// TODO: Check when this is supposed to return true and when not
}
void
ACC_U0
::
ListAllUsers
(
Kernel
::
HLERequestContext
&
ctx
)
{
constexpr
std
::
array
<
u128
,
10
>
user_ids
{
DEFAULT_USER_ID
};
const
auto
&
output_buffer
=
ctx
.
BufferDescriptorC
()[
0
];
Memory
::
WriteBlock
(
output_buffer
.
Address
(),
user_ids
.
data
(),
user_ids
.
size
());
IPC
::
ResponseBuilder
rb
{
ctx
,
2
};
rb
.
Push
(
RESULT_SUCCESS
);
LOG_DEBUG
(
Service_ACC
,
"called"
);
}
void
ACC_U0
::
GetProfile
(
Kernel
::
HLERequestContext
&
ctx
)
{
IPC
::
ResponseBuilder
rb
{
ctx
,
2
,
0
,
1
};
rb
.
Push
(
RESULT_SUCCESS
);
...
...
@@ -85,13 +97,13 @@ void ACC_U0::GetLastOpenedUser(Kernel::HLERequestContext& ctx) {
LOG_WARNING
(
Service_ACC
,
"(STUBBED) called"
);
IPC
::
ResponseBuilder
rb
{
ctx
,
6
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
<
u64
>
(
0x0
);
rb
.
Push
<
u64
>
(
0x0
);
rb
.
PushRaw
(
DEFAULT_USER_ID
);
}
ACC_U0
::
ACC_U0
()
:
ServiceFramework
(
"acc:u0"
)
{
static
const
FunctionInfo
functions
[]
=
{
{
1
,
&
ACC_U0
::
GetUserExistence
,
"GetUserExistence"
},
{
2
,
&
ACC_U0
::
ListAllUsers
,
"ListAllUsers"
},
{
4
,
&
ACC_U0
::
GetLastOpenedUser
,
"GetLastOpenedUser"
},
{
5
,
&
ACC_U0
::
GetProfile
,
"GetProfile"
},
{
100
,
&
ACC_U0
::
InitializeApplicationInfo
,
"InitializeApplicationInfo"
},
...
...
This diff is collapsed.
Click to expand it.
src/core/hle/service/acc/acc_u0.h
+
1
−
0
View file @
dc0a137e
...
...
@@ -28,6 +28,7 @@ public:
private:
void
GetUserExistence
(
Kernel
::
HLERequestContext
&
ctx
);
void
ListAllUsers
(
Kernel
::
HLERequestContext
&
ctx
);
void
GetLastOpenedUser
(
Kernel
::
HLERequestContext
&
ctx
);
void
GetProfile
(
Kernel
::
HLERequestContext
&
ctx
);
void
InitializeApplicationInfo
(
Kernel
::
HLERequestContext
&
ctx
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment