This commit is contained in:
mailwl 2016-08-20 10:28:56 +03:00
parent 8c6ffa17eb
commit 0ca3f8b7b6
4 changed files with 14 additions and 12 deletions

View File

@ -77,9 +77,10 @@ static void IsConnected(Service::Interface* self) {
static void SetClientVersion(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
self->SetVersion(cmd_buff[1]);
const u32 version = cmd_buff[1];
self->SetVersion(version);
LOG_WARNING(Service_AC, "(STUBBED) called, version: 0x%08X", cmd_buff[1]);
LOG_WARNING(Service_AC, "(STUBBED) called, version: 0x%08X", version);
cmd_buff[1] = RESULT_SUCCESS.raw; // No error
}

View File

@ -104,9 +104,11 @@ void GetMyScreenName(Service::Interface* self) {
void SetClientSdkVersion(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
self->SetVersion(cmd_buff[1]);
const u32 version = cmd_buff[1];
LOG_WARNING(Service_FRD, "(STUBBED) called, version: 0x%08X", cmd_buff[1]);
self->SetVersion(version);
LOG_WARNING(Service_FRD, "(STUBBED) called, version: 0x%08X", version);
cmd_buff[1] = RESULT_SUCCESS.raw; // No error
}

View File

@ -713,16 +713,14 @@ static void CreateLegacySystemSaveData(Service::Interface* self) {
static void InitializeWithSdkVersion(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
self->SetVersion(cmd_buff[1]);
const u32 version = cmd_buff[1];
self->SetVersion(version);
if (cmd_buff[2] == IPC::CallingPidDesc()) {
LOG_WARNING(Service_FS, "(STUBBED) called, version: 0x%08X", cmd_buff[1]);
LOG_WARNING(Service_FS, "(STUBBED) called, version: 0x%08X", version);
cmd_buff[1] = RESULT_SUCCESS.raw;
}
else {
} else {
LOG_ERROR(Service_FS, "ProcessId Header must be 0x20");
cmd_buff[1] = ResultCode(ErrorDescription::OS_InvalidBufferDescriptor, ErrorModule::OS,
ErrorSummary::WrongArgument, ErrorLevel::Permanent).raw;
}

View File

@ -21,9 +21,10 @@ namespace MIC_U {
static void SetClientVersion(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
self->SetVersion(cmd_buff[1]);
const u32 version = cmd_buff[1];
self->SetVersion(version);
LOG_WARNING(Service_MIC, "(STUBBED) called, version: 0x%08X", cmd_buff[1]);
LOG_WARNING(Service_MIC, "(STUBBED) called, version: 0x%08X", version);
cmd_buff[1] = RESULT_SUCCESS.raw; // No error
}