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
72f14ae2
There was an error fetching the commit references. Please try again later.
Commit
72f14ae2
authored
4 years ago
by
Morph
Browse files
Options
Downloads
Patches
Plain Diff
caps_u: Fix GetAlbumContentsFileListForApplication stub
parent
3017be78
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/caps/caps_u.cpp
+15
-9
15 additions, 9 deletions
src/core/hle/service/caps/caps_u.cpp
with
15 additions
and
9 deletions
src/core/hle/service/caps/caps_u.cpp
+
15
−
9
View file @
72f14ae2
...
...
@@ -58,19 +58,25 @@ void CAPS_U::GetAlbumContentsFileListForApplication(Kernel::HLERequestContext& c
// u8 ContentType, two s64s, and an u64 AppletResourceUserId. Returns an output u64 for total
// output entries (which is copied to a s32 by official SW).
IPC
::
RequestParser
rp
{
ctx
};
[[
maybe_unused
]]
const
auto
application_album_file_entries
=
rp
.
PopRaw
<
std
::
array
<
u8
,
0x30
>>
();
const
auto
pid
=
rp
.
Pop
<
s32
>
();
const
auto
content_type
=
rp
.
PopRaw
<
ContentType
>
();
[[
maybe_unused
]]
const
auto
start_datetime
=
rp
.
PopRaw
<
AlbumFileDateTime
>
();
[[
maybe_unused
]]
const
auto
end_datetime
=
rp
.
PopRaw
<
AlbumFileDateTime
>
();
const
auto
applet_resource_user_id
=
rp
.
Pop
<
u64
>
();
const
auto
pid
{
rp
.
Pop
<
s32
>
()};
const
auto
content_type
{
rp
.
PopEnum
<
ContentType
>
()};
const
auto
start_posix_time
{
rp
.
Pop
<
s64
>
()};
const
auto
end_posix_time
{
rp
.
Pop
<
s64
>
()};
const
auto
applet_resource_user_id
{
rp
.
Pop
<
u64
>
()};
// TODO: Update this when we implement the album.
// Currently we do not have a method of accessing album entries, set this to 0 for now.
constexpr
s32
total_entries
{
0
};
LOG_WARNING
(
Service_Capture
,
"(STUBBED) called. pid={}, content_type={}, applet_resource_user_id={}"
,
pid
,
content_type
,
applet_resource_user_id
);
"(STUBBED) called. pid={}, content_type={}, start_posix_time={}, "
"end_posix_time={}, applet_resource_user_id={}, total_entries={}"
,
pid
,
content_type
,
start_posix_time
,
end_posix_time
,
applet_resource_user_id
,
total_entries
);
IPC
::
ResponseBuilder
rb
{
ctx
,
3
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
<
s32
>
(
0
);
rb
.
Push
(
total_entries
);
}
}
// namespace Service::Capture
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