fatal.h 795 B

123456789101112131415161718192021222324252627282930313233
  1. // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "core/hle/service/service.h"
  5. namespace Core {
  6. class System;
  7. }
  8. namespace Service::Fatal {
  9. class Module final {
  10. public:
  11. class Interface : public ServiceFramework<Interface> {
  12. public:
  13. explicit Interface(std::shared_ptr<Module> module_, Core::System& system_,
  14. const char* name);
  15. ~Interface() override;
  16. void ThrowFatal(HLERequestContext& ctx);
  17. void ThrowFatalWithPolicy(HLERequestContext& ctx);
  18. void ThrowFatalWithCpuContext(HLERequestContext& ctx);
  19. protected:
  20. std::shared_ptr<Module> module;
  21. };
  22. };
  23. void LoopProcess(Core::System& system);
  24. } // namespace Service::Fatal