2022-04-23 04:59:50 -04:00
|
|
|
// 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;
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
namespace Service::Fatal {
|
2018-03-20 16:55:20 +03:00
|
|
|
|
|
|
|
|
class Module final {
|
|
|
|
|
public:
|
|
|
|
|
class Interface : public ServiceFramework<Interface> {
|
|
|
|
|
public:
|
2020-11-26 15:19:08 -05:00
|
|
|
explicit Interface(std::shared_ptr<Module> module_, Core::System& system_,
|
|
|
|
|
const char* name);
|
2018-09-10 21:20:52 -04:00
|
|
|
~Interface() override;
|
2018-03-20 16:55:20 +03:00
|
|
|
|
2023-02-19 14:42:12 -05:00
|
|
|
void ThrowFatal(HLERequestContext& ctx);
|
|
|
|
|
void ThrowFatalWithPolicy(HLERequestContext& ctx);
|
|
|
|
|
void ThrowFatalWithCpuContext(HLERequestContext& ctx);
|
2018-03-20 16:55:20 +03:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
std::shared_ptr<Module> module;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2023-02-18 16:26:48 -05:00
|
|
|
void LoopProcess(Core::System& system);
|
2018-03-20 16:55:20 +03:00
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
} // namespace Service::Fatal
|