mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-12-16 12:08:49 +00:00
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:
parent
7fbfdad69a
commit
92add93e44
@ -3454,10 +3454,9 @@ void Module::Interface::GetProgramInfoFromCia(Kernel::HLERequestContext& ctx) {
|
||||
title_info.version = tmd.GetTitleVersion();
|
||||
title_info.type = tmd.GetTitleType();
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(8, 0);
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(7, 0);
|
||||
rb.Push(ResultSuccess);
|
||||
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) {
|
||||
|
||||
@ -698,14 +698,11 @@ void Module::APTInterface::AppletUtility(Kernel::HLERequestContext& ctx) {
|
||||
utility_command, input_size, output_size);
|
||||
|
||||
std::vector<u8> out(output_size);
|
||||
|
||||
if (utility_command == 0x6) {
|
||||
if (utility_command == 0x6 && output_size > 0) {
|
||||
// Command 0x6 (TryLockTransition) expects a boolean return value indicating
|
||||
// whether the attempt succeeded. Since we don't implement any of the transition
|
||||
// locking stuff yet, fake a success result to avoid app crashes.
|
||||
|
||||
if (output_size > 0)
|
||||
out[0] = true;
|
||||
out[0] = true;
|
||||
}
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(2, 2);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user