diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp index 0e78ff0071..0722df379d 100644 --- a/src/core/hle/service/acc/acc.cpp +++ b/src/core/hle/service/acc/acc.cpp @@ -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 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 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(0); + rb.Push(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(false); + rb.Push(true); } void Module::Interface::TrySelectUserWithoutInteractionDeprecated(HLERequestContext& ctx) {