Changed the returned number of words on GetProgramInfoFromCia to 7 insteead of 8, futher reverted AppletUtility function to match its original form

This commit is contained in:
U-DESKTOP-7SFAKTP\Ron 2025-09-20 10:02:06 -07:00 committed by PabloMK7
parent 7fbfdad69a
commit 92add93e44
2 changed files with 3 additions and 7 deletions

View File

@ -3454,10 +3454,9 @@ void Module::Interface::GetProgramInfoFromCia(Kernel::HLERequestContext& ctx) {
title_info.version = tmd.GetTitleVersion(); title_info.version = tmd.GetTitleVersion();
title_info.type = tmd.GetTitleType(); title_info.type = tmd.GetTitleType();
IPC::RequestBuilder rb = rp.MakeBuilder(8, 0); IPC::RequestBuilder rb = rp.MakeBuilder(7, 0);
rb.Push(ResultSuccess); rb.Push(ResultSuccess);
rb.PushRaw<TitleInfo>(title_info); rb.PushRaw<TitleInfo>(title_info);
rb.Push<u32>(0x0); // make num words pushed match header so no assert occurrs
} }
void Module::Interface::GetSystemMenuDataFromCia(Kernel::HLERequestContext& ctx) { void Module::Interface::GetSystemMenuDataFromCia(Kernel::HLERequestContext& ctx) {

View File

@ -698,14 +698,11 @@ void Module::APTInterface::AppletUtility(Kernel::HLERequestContext& ctx) {
utility_command, input_size, output_size); utility_command, input_size, output_size);
std::vector<u8> out(output_size); std::vector<u8> out(output_size);
if (utility_command == 0x6 && output_size > 0) {
if (utility_command == 0x6) {
// Command 0x6 (TryLockTransition) expects a boolean return value indicating // Command 0x6 (TryLockTransition) expects a boolean return value indicating
// whether the attempt succeeded. Since we don't implement any of the transition // whether the attempt succeeded. Since we don't implement any of the transition
// locking stuff yet, fake a success result to avoid app crashes. // locking stuff yet, fake a success result to avoid app crashes.
out[0] = true;
if (output_size > 0)
out[0] = true;
} }
IPC::RequestBuilder rb = rp.MakeBuilder(2, 2); IPC::RequestBuilder rb = rp.MakeBuilder(2, 2);