diff options
| author | 2018-09-19 00:16:52 +1000 | |
|---|---|---|
| committer | 2018-09-19 00:16:52 +1000 | |
| commit | 528e5cee670b56e1e67068cfb680c33b6e8722c6 (patch) | |
| tree | c5a79f242006bfa6dc39634b85992b6743b9ee89 /src | |
| parent | Merge pull request #1290 from FernandoS27/shader-header (diff) | |
| download | yuzu-528e5cee670b56e1e67068cfb680c33b6e8722c6.tar.gz yuzu-528e5cee670b56e1e67068cfb680c33b6e8722c6.tar.xz yuzu-528e5cee670b56e1e67068cfb680c33b6e8722c6.zip | |
Implemented GetImageSize
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/service/acc/acc.cpp | 10 |
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: | |||
| 34 | static const FunctionInfo functions[] = { | 34 | static const FunctionInfo functions[] = { |
| 35 | {0, &IProfile::Get, "Get"}, | 35 | {0, &IProfile::Get, "Get"}, |
| 36 | {1, &IProfile::GetBase, "GetBase"}, | 36 | {1, &IProfile::GetBase, "GetBase"}, |
| 37 | {10, nullptr, "GetImageSize"}, | 37 | {10, &IProfile::GetImageSize, "GetImageSize"}, |
| 38 | {11, &IProfile::LoadImage, "LoadImage"}, | 38 | {11, &IProfile::LoadImage, "LoadImage"}, |
| 39 | }; | 39 | }; |
| 40 | RegisterHandlers(functions); | 40 | RegisterHandlers(functions); |
| @@ -93,6 +93,14 @@ private: | |||
| 93 | rb.Push<u32>(jpeg_size); | 93 | rb.Push<u32>(jpeg_size); |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | void GetImageSize(Kernel::HLERequestContext& ctx) { | ||
| 97 | LOG_WARNING(Service_ACC, "(STUBBED) called"); | ||
| 98 | constexpr u32 jpeg_size = 107; | ||
| 99 | IPC::ResponseBuilder rb{ctx, 3}; | ||
| 100 | rb.Push(RESULT_SUCCESS); | ||
| 101 | rb.Push<u32>(jpeg_size); | ||
| 102 | } | ||
| 103 | |||
| 96 | const ProfileManager& profile_manager; | 104 | const ProfileManager& profile_manager; |
| 97 | UUID user_id; ///< The user id this profile refers to. | 105 | UUID user_id; ///< The user id this profile refers to. |
| 98 | }; | 106 | }; |