diff options
| author | 2018-05-20 23:42:57 -0400 | |
|---|---|---|
| committer | 2018-05-20 23:42:57 -0400 | |
| commit | ff54287a734a70a0e1148b720023708b52a328e0 (patch) | |
| tree | 8b6664e989366754bab7da922b21652d1a6bafe2 /src | |
| parent | Merge pull request #453 from Subv/thread_callstack (diff) | |
| parent | rename fatal:u functions & add ThrowFatal (diff) | |
| download | yuzu-ff54287a734a70a0e1148b720023708b52a328e0.tar.gz yuzu-ff54287a734a70a0e1148b720023708b52a328e0.tar.xz yuzu-ff54287a734a70a0e1148b720023708b52a328e0.zip | |
Merge pull request #445 from greggameplayer/patch-2
Properly rename functions of Fatal Module & add ThrowFatal to this module
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/fatal/fatal.cpp | 4 | ||||
| -rw-r--r-- | src/core/hle/service/fatal/fatal.h | 4 | ||||
| -rw-r--r-- | src/core/hle/service/fatal/fatal_u.cpp | 5 |
3 files changed, 7 insertions, 6 deletions
diff --git a/src/core/hle/service/fatal/fatal.cpp b/src/core/hle/service/fatal/fatal.cpp index bb75e7314..2d4282209 100644 --- a/src/core/hle/service/fatal/fatal.cpp +++ b/src/core/hle/service/fatal/fatal.cpp | |||
| @@ -13,7 +13,7 @@ namespace Service::Fatal { | |||
| 13 | Module::Interface::Interface(std::shared_ptr<Module> module, const char* name) | 13 | Module::Interface::Interface(std::shared_ptr<Module> module, const char* name) |
| 14 | : ServiceFramework(name), module(std::move(module)) {} | 14 | : ServiceFramework(name), module(std::move(module)) {} |
| 15 | 15 | ||
| 16 | void Module::Interface::FatalSimple(Kernel::HLERequestContext& ctx) { | 16 | void Module::Interface::ThrowFatalWithPolicy(Kernel::HLERequestContext& ctx) { |
| 17 | IPC::RequestParser rp(ctx); | 17 | IPC::RequestParser rp(ctx); |
| 18 | u32 error_code = rp.Pop<u32>(); | 18 | u32 error_code = rp.Pop<u32>(); |
| 19 | NGLOG_WARNING(Service_Fatal, "(STUBBED) called, error_code=0x{:X}", error_code); | 19 | NGLOG_WARNING(Service_Fatal, "(STUBBED) called, error_code=0x{:X}", error_code); |
| @@ -21,7 +21,7 @@ void Module::Interface::FatalSimple(Kernel::HLERequestContext& ctx) { | |||
| 21 | rb.Push(RESULT_SUCCESS); | 21 | rb.Push(RESULT_SUCCESS); |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | void Module::Interface::TransitionToFatalError(Kernel::HLERequestContext& ctx) { | 24 | void Module::Interface::ThrowFatalWithCpuContext(Kernel::HLERequestContext& ctx) { |
| 25 | NGLOG_WARNING(Service_Fatal, "(STUBBED) called"); | 25 | NGLOG_WARNING(Service_Fatal, "(STUBBED) called"); |
| 26 | IPC::ResponseBuilder rb{ctx, 2}; | 26 | IPC::ResponseBuilder rb{ctx, 2}; |
| 27 | rb.Push(RESULT_SUCCESS); | 27 | rb.Push(RESULT_SUCCESS); |
diff --git a/src/core/hle/service/fatal/fatal.h b/src/core/hle/service/fatal/fatal.h index 2d8d08320..5bd111a14 100644 --- a/src/core/hle/service/fatal/fatal.h +++ b/src/core/hle/service/fatal/fatal.h | |||
| @@ -14,8 +14,8 @@ public: | |||
| 14 | public: | 14 | public: |
| 15 | Interface(std::shared_ptr<Module> module, const char* name); | 15 | Interface(std::shared_ptr<Module> module, const char* name); |
| 16 | 16 | ||
| 17 | void FatalSimple(Kernel::HLERequestContext& ctx); | 17 | void ThrowFatalWithPolicy(Kernel::HLERequestContext& ctx); |
| 18 | void TransitionToFatalError(Kernel::HLERequestContext& ctx); | 18 | void ThrowFatalWithCpuContext(Kernel::HLERequestContext& ctx); |
| 19 | 19 | ||
| 20 | protected: | 20 | protected: |
| 21 | std::shared_ptr<Module> module; | 21 | std::shared_ptr<Module> module; |
diff --git a/src/core/hle/service/fatal/fatal_u.cpp b/src/core/hle/service/fatal/fatal_u.cpp index 26aa9f3b7..f0631329e 100644 --- a/src/core/hle/service/fatal/fatal_u.cpp +++ b/src/core/hle/service/fatal/fatal_u.cpp | |||
| @@ -8,8 +8,9 @@ namespace Service::Fatal { | |||
| 8 | 8 | ||
| 9 | Fatal_U::Fatal_U(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "fatal:u") { | 9 | Fatal_U::Fatal_U(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "fatal:u") { |
| 10 | static const FunctionInfo functions[] = { | 10 | static const FunctionInfo functions[] = { |
| 11 | {1, &Fatal_U::FatalSimple, "FatalSimple"}, | 11 | {0, nullptr, "ThrowFatal"}, |
| 12 | {2, &Fatal_U::TransitionToFatalError, "TransitionToFatalError"}, | 12 | {1, &Fatal_U::ThrowFatalWithPolicy, "ThrowFatalWithPolicy"}, |
| 13 | {2, &Fatal_U::ThrowFatalWithCpuContext, "ThrowFatalWithCpuContext"}, | ||
| 13 | }; | 14 | }; |
| 14 | RegisterHandlers(functions); | 15 | RegisterHandlers(functions); |
| 15 | } | 16 | } |