mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-14 07:25:06 +01:00
Stub GetPreviousProgramIndex
This commit is contained in:
parent
360306eb61
commit
2cdfc7640c
@ -146,6 +146,11 @@ namespace skyline::service::am {
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result IApplicationFunctions::GetPreviousProgramIndex(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||||
|
response.Push<i32>(previousProgramIndex);
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
Result IApplicationFunctions::GetGpuErrorDetectedSystemEvent(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
Result IApplicationFunctions::GetGpuErrorDetectedSystemEvent(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||||
auto handle{state.process->InsertItem(gpuErrorEvent)};
|
auto handle{state.process->InsertItem(gpuErrorEvent)};
|
||||||
Logger::Debug("GPU Error Event Handle: 0x{:X}", handle);
|
Logger::Debug("GPU Error Event Handle: 0x{:X}", handle);
|
||||||
|
@ -21,6 +21,7 @@ namespace skyline::service::am {
|
|||||||
private:
|
private:
|
||||||
std::shared_ptr<type::KEvent> gpuErrorEvent; //!< The event signalled on GPU errors
|
std::shared_ptr<type::KEvent> gpuErrorEvent; //!< The event signalled on GPU errors
|
||||||
std::shared_ptr<type::KEvent> friendInvitationStorageChannelEvent; //!< The event signalled on friend invitations
|
std::shared_ptr<type::KEvent> friendInvitationStorageChannelEvent; //!< The event signalled on friend invitations
|
||||||
|
i32 previousProgramIndex{-1}; //!< There was no previous title
|
||||||
|
|
||||||
public:
|
public:
|
||||||
IApplicationFunctions(const DeviceState &state, ServiceManager &manager);
|
IApplicationFunctions(const DeviceState &state, ServiceManager &manager);
|
||||||
@ -96,6 +97,12 @@ namespace skyline::service::am {
|
|||||||
*/
|
*/
|
||||||
Result SetApplicationCopyrightVisibility(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
Result SetApplicationCopyrightVisibility(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Gets the ProgramIndex of the Application which launched this title
|
||||||
|
* @url https://switchbrew.org/wiki/Applet_Manager_services#GetPreviousProgramIndex
|
||||||
|
*/
|
||||||
|
Result GetPreviousProgramIndex(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Obtains a handle to the system GPU error KEvent
|
* @brief Obtains a handle to the system GPU error KEvent
|
||||||
* @url https://switchbrew.org/wiki/Applet_Manager_services#GetGpuErrorDetectedSystemEvent
|
* @url https://switchbrew.org/wiki/Applet_Manager_services#GetGpuErrorDetectedSystemEvent
|
||||||
@ -122,6 +129,7 @@ namespace skyline::service::am {
|
|||||||
SFUNC(0x64, IApplicationFunctions, InitializeApplicationCopyrightFrameBuffer),
|
SFUNC(0x64, IApplicationFunctions, InitializeApplicationCopyrightFrameBuffer),
|
||||||
SFUNC(0x65, IApplicationFunctions, SetApplicationCopyrightImage),
|
SFUNC(0x65, IApplicationFunctions, SetApplicationCopyrightImage),
|
||||||
SFUNC(0x66, IApplicationFunctions, SetApplicationCopyrightVisibility),
|
SFUNC(0x66, IApplicationFunctions, SetApplicationCopyrightVisibility),
|
||||||
|
SFUNC(0x7B, IApplicationFunctions, GetPreviousProgramIndex),
|
||||||
SFUNC(0x82, IApplicationFunctions, GetGpuErrorDetectedSystemEvent),
|
SFUNC(0x82, IApplicationFunctions, GetGpuErrorDetectedSystemEvent),
|
||||||
SFUNC(0x8C, IApplicationFunctions, GetFriendInvitationStorageChannelEvent),
|
SFUNC(0x8C, IApplicationFunctions, GetFriendInvitationStorageChannelEvent),
|
||||||
SFUNC(0x8D, IApplicationFunctions, TryPopFromFriendInvitationStorageChannel)
|
SFUNC(0x8D, IApplicationFunctions, TryPopFromFriendInvitationStorageChannel)
|
||||||
|
Loading…
Reference in New Issue
Block a user