hle: service: caps_u: Stub GetAlbumFileList3AaeAruid.
- This works similiar to GetAlbumContentsFileListForApplication. - Since we do not implement the album, this should be safe to stub for now. - Used by Super Smash Bros. Ultimate (newer updates) in World of Light.
This commit is contained in:
parent
f6a89edb67
commit
a0d7a2732d
2 changed files with 17 additions and 9 deletions
|
@ -41,7 +41,7 @@ CAPS_U::CAPS_U() : ServiceFramework("caps:u") {
|
||||||
{130, nullptr, "PrecheckToCreateContentsForApplication"},
|
{130, nullptr, "PrecheckToCreateContentsForApplication"},
|
||||||
{140, nullptr, "GetAlbumFileList1AafeAruidDeprecated"},
|
{140, nullptr, "GetAlbumFileList1AafeAruidDeprecated"},
|
||||||
{141, nullptr, "GetAlbumFileList2AafeUidAruidDeprecated"},
|
{141, nullptr, "GetAlbumFileList2AafeUidAruidDeprecated"},
|
||||||
{142, nullptr, "GetAlbumFileList3AaeAruid"},
|
{142, &CAPS_U::GetAlbumFileList3AaeAruid, "GetAlbumFileList3AaeAruid"},
|
||||||
{143, nullptr, "GetAlbumFileList4AaeUidAruid"},
|
{143, nullptr, "GetAlbumFileList4AaeUidAruid"},
|
||||||
{60002, nullptr, "OpenAccessorSessionForApplication"},
|
{60002, nullptr, "OpenAccessorSessionForApplication"},
|
||||||
};
|
};
|
||||||
|
@ -77,17 +77,24 @@ void CAPS_U::GetAlbumContentsFileListForApplication(Kernel::HLERequestContext& c
|
||||||
|
|
||||||
// TODO: Update this when we implement the album.
|
// 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.
|
// Currently we do not have a method of accessing album entries, set this to 0 for now.
|
||||||
constexpr s32 total_entries{0};
|
constexpr u32 total_entries_1{};
|
||||||
|
constexpr u32 total_entries_2{};
|
||||||
|
|
||||||
LOG_WARNING(Service_Capture,
|
LOG_WARNING(
|
||||||
|
Service_Capture,
|
||||||
"(STUBBED) called. pid={}, content_type={}, start_posix_time={}, "
|
"(STUBBED) called. pid={}, content_type={}, start_posix_time={}, "
|
||||||
"end_posix_time={}, applet_resource_user_id={}, total_entries={}",
|
"end_posix_time={}, applet_resource_user_id={}, total_entries_1={}, total_entries_2={}",
|
||||||
pid, content_type, start_posix_time, end_posix_time, applet_resource_user_id,
|
pid, content_type, start_posix_time, end_posix_time, applet_resource_user_id,
|
||||||
total_entries);
|
total_entries_1, total_entries_2);
|
||||||
|
|
||||||
IPC::ResponseBuilder rb{ctx, 3};
|
IPC::ResponseBuilder rb{ctx, 4};
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
rb.Push(total_entries);
|
rb.Push(total_entries_1);
|
||||||
|
rb.Push(total_entries_2);
|
||||||
|
}
|
||||||
|
|
||||||
|
void CAPS_U::GetAlbumFileList3AaeAruid(Kernel::HLERequestContext& ctx) {
|
||||||
|
GetAlbumContentsFileListForApplication(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Service::Capture
|
} // namespace Service::Capture
|
||||||
|
|
|
@ -20,6 +20,7 @@ public:
|
||||||
private:
|
private:
|
||||||
void SetShimLibraryVersion(Kernel::HLERequestContext& ctx);
|
void SetShimLibraryVersion(Kernel::HLERequestContext& ctx);
|
||||||
void GetAlbumContentsFileListForApplication(Kernel::HLERequestContext& ctx);
|
void GetAlbumContentsFileListForApplication(Kernel::HLERequestContext& ctx);
|
||||||
|
void GetAlbumFileList3AaeAruid(Kernel::HLERequestContext& ctx);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Service::Capture
|
} // namespace Service::Capture
|
||||||
|
|
Loading…
Reference in a new issue