Merge pull request #1348 from ogniK5377/GetImageSize

Implemented IProfile::GetImageSize
This commit is contained in:
bunnei 2018-09-18 22:15:18 -04:00 committed by GitHub
commit b33ce787b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public:
static const FunctionInfo functions[] = { static const FunctionInfo functions[] = {
{0, &IProfile::Get, "Get"}, {0, &IProfile::Get, "Get"},
{1, &IProfile::GetBase, "GetBase"}, {1, &IProfile::GetBase, "GetBase"},
{10, nullptr, "GetImageSize"}, {10, &IProfile::GetImageSize, "GetImageSize"},
{11, &IProfile::LoadImage, "LoadImage"}, {11, &IProfile::LoadImage, "LoadImage"},
}; };
RegisterHandlers(functions); RegisterHandlers(functions);
@ -93,6 +93,14 @@ private:
rb.Push<u32>(jpeg_size); 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; const ProfileManager& profile_manager;
UUID user_id; ///< The user id this profile refers to. UUID user_id; ///< The user id this profile refers to.
}; };