Stub GetAccountId

This commit is contained in:
Dima 2022-11-03 23:24:49 +03:00 committed by Billy Laws
parent 0b452fe36b
commit 3d475ca122
2 changed files with 12 additions and 0 deletions

View File

@ -2,6 +2,7 @@
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
#include "IManagerForApplication.h"
#include "IAccountServiceForApplication.h"
namespace skyline::service::account {
IManagerForApplication::IManagerForApplication(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager) {}
@ -11,6 +12,11 @@ namespace skyline::service::account {
return {};
}
Result IManagerForApplication::GetAccountId(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
response.Push(constant::DefaultUserId);
return {};
}
Result IManagerForApplication::StoreOpenContext(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
return {};
}

View File

@ -19,10 +19,16 @@ namespace skyline::service::account {
*/
Result CheckAvailability(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/**
* @brief Returns the user ID of the current user
*/
Result GetAccountId(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
Result StoreOpenContext(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
SERVICE_DECL(
SFUNC(0x0, IManagerForApplication, CheckAvailability),
SFUNC(0x1, IManagerForApplication, GetAccountId),
SFUNC(0xA0, IManagerForApplication, StoreOpenContext)
)
};