17 lines
709 B
C++
17 lines
709 B
C++
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
|
|
|
|
#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", request.Pop<u32>());
|
|
}
|
|
}
|