mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-06-26 17:36:04 +02:00
14 lines
609 B
C++
14 lines
609 B
C++
![]() |
#include "IService.h"
|
||
|
|
||
|
namespace skyline::service::fatalsrv {
|
||
|
IService::IService(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager, Service::fatalsrv_IService, "fatalsrv:IService", {
|
||
|
{0x0, SFUNC(IService::ThrowFatal)},
|
||
|
{0x1, SFUNC(IService::ThrowFatal)},
|
||
|
{0x2, SFUNC(IService::ThrowFatal)}
|
||
|
}) {}
|
||
|
|
||
|
void IService::ThrowFatal(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||
|
throw exception("A fatal error with code: 0x{:X} has caused emulation to stop", *reinterpret_cast<u32 *>(request.cmdArg));
|
||
|
}
|
||
|
}
|