Compare commits
1 commit
07581a2161
...
3b18de150e
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3b18de150e |
1 changed files with 9 additions and 10 deletions
|
@ -1116,26 +1116,25 @@ void Module::Interface::ClearSaveDataThumbnail(HLERequestContext& ctx) {
|
|||
}
|
||||
|
||||
void Module::Interface::LoadSaveDataThumbnail(HLERequestContext& ctx) {
|
||||
const auto out_size = ctx.GetWriteBufferSize();
|
||||
// TODO: Grab thumbnail from Nand so this can be unstubbed
|
||||
// For now, pretend a thumbnail exists and return dummy data
|
||||
std::vector<u8> dummy_thumbnail(THUMBNAIL_SIZE, 0);
|
||||
ctx.WriteBuffer(dummy_thumbnail);
|
||||
|
||||
LOG_WARNING(Service_ACC, "(STUBBED) called. out_size={}", out_size);
|
||||
|
||||
if (out_size > 0) {
|
||||
std::vector<u8> dummy(out_size, 0);
|
||||
ctx.WriteBuffer(dummy.data(), dummy.size());
|
||||
}
|
||||
LOG_WARNING(Service_ACC, "(STUBBED) called. returning dummy thumbnail");
|
||||
|
||||
IPC::ResponseBuilder rb{ctx, 3};
|
||||
rb.Push(ResultSuccess);
|
||||
rb.Push<u64>(0);
|
||||
rb.Push<u64>(THUMBNAIL_SIZE);
|
||||
}
|
||||
|
||||
void Module::Interface::GetSaveDataThumbnailExistence(HLERequestContext& ctx) {
|
||||
LOG_WARNING(Service_ACC, "(STUBBED) called. Returning false.");
|
||||
// TODO: Get actual thumbnail image
|
||||
LOG_WARNING(Service_ACC, "(STUBBED) called. Returning true (dummy thumbnail)");
|
||||
|
||||
IPC::ResponseBuilder rb{ctx, 3};
|
||||
rb.Push(ResultSuccess);
|
||||
rb.Push<bool>(false);
|
||||
rb.Push<bool>(true);
|
||||
}
|
||||
|
||||
void Module::Interface::TrySelectUserWithoutInteractionDeprecated(HLERequestContext& ctx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue