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
d3fbf457
There was an error fetching the commit references. Please try again later.
Commit
d3fbf457
authored
6 years ago
by
Zach Hilman
Browse files
Options
Downloads
Patches
Plain Diff
am: Pass current user UUID to launch parameters
parent
aeffd4b4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/hle/service/am/am.cpp
+9
-7
9 additions, 7 deletions
src/core/hle/service/am/am.cpp
with
9 additions
and
7 deletions
src/core/hle/service/am/am.cpp
+
9
−
7
View file @
d3fbf457
...
...
@@ -26,6 +26,8 @@
namespace
Service
::
AM
{
constexpr
std
::
size_t
POP_LAUNCH_PARAMETER_BUFFER_SIZE
=
0x88
;
IWindowController
::
IWindowController
()
:
ServiceFramework
(
"IWindowController"
)
{
// clang-format off
static
const
FunctionInfo
functions
[]
=
{
...
...
@@ -724,16 +726,16 @@ void IApplicationFunctions::EndBlockingHomeButton(Kernel::HLERequestContext& ctx
}
void
IApplicationFunctions
::
PopLaunchParameter
(
Kernel
::
HLERequestContext
&
ctx
)
{
constexpr
std
::
array
<
u8
,
0x8
8
>
data
{
{
constexpr
std
::
array
<
u8
,
0x8
>
header_
data
{
0xca
,
0x97
,
0x94
,
0xc7
,
// Magic
1
,
0
,
0
,
0
,
// IsAccountSelected (bool)
1
,
0
,
0
,
0
,
// User Id (word 0)
0
,
0
,
0
,
0
,
// User Id (word 1)
0
,
0
,
0
,
0
,
// User Id (word 2)
0
,
0
,
0
,
0
// User Id (word 3)
}};
};
std
::
vector
<
u8
>
buffer
(
POP_LAUNCH_PARAMETER_BUFFER_SIZE
);
std
::
vector
<
u8
>
buffer
(
data
.
begin
(),
data
.
end
());
std
::
memcpy
(
buffer
.
data
(),
header_data
.
data
(),
header_data
.
size
());
const
auto
current_uuid
=
Settings
::
values
.
users
[
Settings
::
values
.
current_user
].
second
.
uuid
;
std
::
memcpy
(
buffer
.
data
()
+
header_data
.
size
(),
current_uuid
.
data
(),
sizeof
(
u128
));
IPC
::
ResponseBuilder
rb
{
ctx
,
2
,
0
,
1
};
...
...
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