summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-19 04:15:18 +0200
committerGitHub <noreply@github.com>2018-09-19 04:15:18 +0200
commitb33ce787b7959e1bfd3b5ae4886b6e137fb97711 (patch)
treee4403f3a4311be21e794ec5b85dcad2cca53bdf0 /src/core
parentMerge pull request #1319 from lioncash/audio (diff)
parentImplemented GetImageSize (diff)
downloadyuzu-b33ce787b7959e1bfd3b5ae4886b6e137fb97711.tar
yuzu-b33ce787b7959e1bfd3b5ae4886b6e137fb97711.tar.gz
yuzu-b33ce787b7959e1bfd3b5ae4886b6e137fb97711.tar.bz2
yuzu-b33ce787b7959e1bfd3b5ae4886b6e137fb97711.tar.lz
yuzu-b33ce787b7959e1bfd3b5ae4886b6e137fb97711.tar.xz
yuzu-b33ce787b7959e1bfd3b5ae4886b6e137fb97711.tar.zst
yuzu-b33ce787b7959e1bfd3b5ae4886b6e137fb97711.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/acc/acc.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp
index 1502dbf55..4d4eb542e 100644
--- a/src/core/hle/service/acc/acc.cpp
+++ b/src/core/hle/service/acc/acc.cpp
@@ -34,7 +34,7 @@ public:
static const FunctionInfo functions[] = {
{0, &IProfile::Get, "Get"},
{1, &IProfile::GetBase, "GetBase"},
- {10, nullptr, "GetImageSize"},
+ {10, &IProfile::GetImageSize, "GetImageSize"},
{11, &IProfile::LoadImage, "LoadImage"},
};
RegisterHandlers(functions);
@@ -93,6 +93,14 @@ private:
rb.Push<u32>(jpeg_size);
}
+ void GetImageSize(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service_ACC, "(STUBBED) called");
+ constexpr u32 jpeg_size = 107;
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(RESULT_SUCCESS);
+ rb.Push<u32>(jpeg_size);
+ }
+
const ProfileManager& profile_manager;
UUID user_id; ///< The user id this profile refers to.
};