Files
eden/src/core/hle/service/fatal/fatal.h
T

34 lines
862 B
C++
Raw Normal View History

// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2018-03-20 16:55:20 +03:00
#pragma once
#include "core/hle/service/service.h"
2019-09-21 18:43:03 +10:00
namespace Core {
class System;
}
namespace Service::Fatal {
2018-03-20 16:55:20 +03:00
class Module final {
public:
class Interface : public ServiceFramework<Interface> {
public:
explicit Interface(std::shared_ptr<Module> module_, Core::System& system_,
const char* name);
~Interface() override;
2018-03-20 16:55:20 +03:00
2018-09-24 12:34:11 +10:00
void ThrowFatal(Kernel::HLERequestContext& ctx);
2018-05-18 23:30:56 +02:00
void ThrowFatalWithPolicy(Kernel::HLERequestContext& ctx);
void ThrowFatalWithCpuContext(Kernel::HLERequestContext& ctx);
2018-03-20 16:55:20 +03:00
protected:
std::shared_ptr<Module> module;
};
};
2019-09-21 18:43:03 +10:00
void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
2018-03-20 16:55:20 +03:00
} // namespace Service::Fatal