mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-08-25 03:17:18 +02:00
Merge pull request #1722 from MysticExile/enable-applictation-crash-report
am: Stub EnableApplicationCrashReport
This commit is contained in:
commit
a819116154
@ -203,8 +203,8 @@ ISelfController::ISelfController(std::shared_ptr<NVFlinger::NVFlinger> nvflinger
|
|||||||
ISelfController::~ISelfController() = default;
|
ISelfController::~ISelfController() = default;
|
||||||
|
|
||||||
void ISelfController::SetFocusHandlingMode(Kernel::HLERequestContext& ctx) {
|
void ISelfController::SetFocusHandlingMode(Kernel::HLERequestContext& ctx) {
|
||||||
// Takes 3 input u8s with each field located immediately after the previous u8, these are
|
// Takes 3 input u8s with each field located immediately after the previous
|
||||||
// bool flags. No output.
|
// u8, these are bool flags. No output.
|
||||||
|
|
||||||
IPC::RequestParser rp{ctx};
|
IPC::RequestParser rp{ctx};
|
||||||
|
|
||||||
@ -258,8 +258,8 @@ void ISelfController::SetOperationModeChangedNotification(Kernel::HLERequestCont
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ISelfController::SetOutOfFocusSuspendingEnabled(Kernel::HLERequestContext& ctx) {
|
void ISelfController::SetOutOfFocusSuspendingEnabled(Kernel::HLERequestContext& ctx) {
|
||||||
// Takes 3 input u8s with each field located immediately after the previous u8, these are
|
// Takes 3 input u8s with each field located immediately after the previous
|
||||||
// bool flags. No output.
|
// u8, these are bool flags. No output.
|
||||||
IPC::RequestParser rp{ctx};
|
IPC::RequestParser rp{ctx};
|
||||||
|
|
||||||
bool enabled = rp.Pop<bool>();
|
bool enabled = rp.Pop<bool>();
|
||||||
@ -302,8 +302,8 @@ void ISelfController::SetScreenShotImageOrientation(Kernel::HLERequestContext& c
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ISelfController::CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx) {
|
void ISelfController::CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx) {
|
||||||
// TODO(Subv): Find out how AM determines the display to use, for now just create the layer
|
// TODO(Subv): Find out how AM determines the display to use, for now just
|
||||||
// in the Default display.
|
// create the layer in the Default display.
|
||||||
u64 display_id = nvflinger->OpenDisplay("Default");
|
u64 display_id = nvflinger->OpenDisplay("Default");
|
||||||
u64 layer_id = nvflinger->CreateLayer(display_id);
|
u64 layer_id = nvflinger->CreateLayer(display_id);
|
||||||
|
|
||||||
@ -733,7 +733,7 @@ IApplicationFunctions::IApplicationFunctions() : ServiceFramework("IApplicationF
|
|||||||
{70, nullptr, "RequestToShutdown"},
|
{70, nullptr, "RequestToShutdown"},
|
||||||
{71, nullptr, "RequestToReboot"},
|
{71, nullptr, "RequestToReboot"},
|
||||||
{80, nullptr, "ExitAndRequestToShowThanksMessage"},
|
{80, nullptr, "ExitAndRequestToShowThanksMessage"},
|
||||||
{90, nullptr, "EnableApplicationCrashReport"},
|
{90, &IApplicationFunctions::EnableApplicationCrashReport, "EnableApplicationCrashReport"},
|
||||||
{100, nullptr, "InitializeApplicationCopyrightFrameBuffer"},
|
{100, nullptr, "InitializeApplicationCopyrightFrameBuffer"},
|
||||||
{101, nullptr, "SetApplicationCopyrightImage"},
|
{101, nullptr, "SetApplicationCopyrightImage"},
|
||||||
{102, nullptr, "SetApplicationCopyrightVisibility"},
|
{102, nullptr, "SetApplicationCopyrightVisibility"},
|
||||||
@ -752,6 +752,12 @@ IApplicationFunctions::IApplicationFunctions() : ServiceFramework("IApplicationF
|
|||||||
|
|
||||||
IApplicationFunctions::~IApplicationFunctions() = default;
|
IApplicationFunctions::~IApplicationFunctions() = default;
|
||||||
|
|
||||||
|
void IApplicationFunctions::EnableApplicationCrashReport(Kernel::HLERequestContext& ctx) {
|
||||||
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
|
rb.Push(RESULT_SUCCESS);
|
||||||
|
LOG_WARNING(Service_AM, "(STUBBED) called");
|
||||||
|
}
|
||||||
|
|
||||||
void IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed(
|
void IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed(
|
||||||
Kernel::HLERequestContext& ctx) {
|
Kernel::HLERequestContext& ctx) {
|
||||||
IPC::ResponseBuilder rb{ctx, 2};
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
@ -821,7 +827,8 @@ void IApplicationFunctions::EnsureSaveData(Kernel::HLERequestContext& ctx) {
|
|||||||
|
|
||||||
void IApplicationFunctions::SetTerminateResult(Kernel::HLERequestContext& ctx) {
|
void IApplicationFunctions::SetTerminateResult(Kernel::HLERequestContext& ctx) {
|
||||||
// Takes an input u32 Result, no output.
|
// Takes an input u32 Result, no output.
|
||||||
// For example, in some cases official apps use this with error 0x2A2 then uses svcBreak.
|
// For example, in some cases official apps use this with error 0x2A2 then
|
||||||
|
// uses svcBreak.
|
||||||
|
|
||||||
IPC::RequestParser rp{ctx};
|
IPC::RequestParser rp{ctx};
|
||||||
u32 result = rp.Pop<u32>();
|
u32 result = rp.Pop<u32>();
|
||||||
@ -884,8 +891,8 @@ void IApplicationFunctions::GetPseudoDeviceId(Kernel::HLERequestContext& ctx) {
|
|||||||
void InstallInterfaces(SM::ServiceManager& service_manager,
|
void InstallInterfaces(SM::ServiceManager& service_manager,
|
||||||
std::shared_ptr<NVFlinger::NVFlinger> nvflinger) {
|
std::shared_ptr<NVFlinger::NVFlinger> nvflinger) {
|
||||||
auto message_queue = std::make_shared<AppletMessageQueue>();
|
auto message_queue = std::make_shared<AppletMessageQueue>();
|
||||||
message_queue->PushMessage(
|
message_queue->PushMessage(AppletMessageQueue::AppletMessage::FocusStateChanged); // Needed on
|
||||||
AppletMessageQueue::AppletMessage::FocusStateChanged); // Needed on game boot
|
// game boot
|
||||||
|
|
||||||
std::make_shared<AppletAE>(nvflinger, message_queue)->InstallAsService(service_manager);
|
std::make_shared<AppletAE>(nvflinger, message_queue)->InstallAsService(service_manager);
|
||||||
std::make_shared<AppletOE>(nvflinger, message_queue)->InstallAsService(service_manager);
|
std::make_shared<AppletOE>(nvflinger, message_queue)->InstallAsService(service_manager);
|
||||||
|
@ -185,6 +185,7 @@ private:
|
|||||||
void EndBlockingHomeButtonShortAndLongPressed(Kernel::HLERequestContext& ctx);
|
void EndBlockingHomeButtonShortAndLongPressed(Kernel::HLERequestContext& ctx);
|
||||||
void BeginBlockingHomeButton(Kernel::HLERequestContext& ctx);
|
void BeginBlockingHomeButton(Kernel::HLERequestContext& ctx);
|
||||||
void EndBlockingHomeButton(Kernel::HLERequestContext& ctx);
|
void EndBlockingHomeButton(Kernel::HLERequestContext& ctx);
|
||||||
|
void EnableApplicationCrashReport(Kernel::HLERequestContext& ctx);
|
||||||
};
|
};
|
||||||
|
|
||||||
class IHomeMenuFunctions final : public ServiceFramework<IHomeMenuFunctions> {
|
class IHomeMenuFunctions final : public ServiceFramework<IHomeMenuFunctions> {
|
||||||
|
Loading…
Reference in New Issue
Block a user