diff options
| author | bunnei <bunneidev@gmail.com> | 2021-04-08 15:32:41 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-08 15:32:41 -0700 |
| commit | 1744fa6ecf79d4755543f3c472d5c6159655eac1 (patch) | |
| tree | 1166668afd72d93acb3c7e165b794e3a3476ace2 /src/core/hle/service/service.cpp | |
| parent | dfac2e2d25c18e96a437561e6528b92a82887b32 (diff) | |
| parent | 54c1e0897df82b5c61d6058da57db34e1a893fd4 (diff) | |
Merge pull request #6062 from ameerj/auto-stub
service: Add a toggle for auto stub fallback
Diffstat (limited to 'src/core/hle/service/service.cpp')
| -rw-r--r-- | src/core/hle/service/service.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 1da56bc27..aec399076 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp @@ -70,6 +70,7 @@ #include "core/hle/service/vi/vi.h" #include "core/hle/service/wlan/wlan.h" #include "core/reporter.h" +#include "core/settings.h" namespace Service { @@ -146,6 +147,11 @@ void ServiceFrameworkBase::ReportUnimplementedFunction(Kernel::HLERequestContext system.GetReporter().SaveUnimplementedFunctionReport(ctx, ctx.GetCommand(), function_name, service_name); UNIMPLEMENTED_MSG("Unknown / unimplemented {}", fmt::to_string(buf)); + if (Settings::values.use_auto_stub) { + LOG_WARNING(Service, "Using auto stub fallback!"); + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); + } } void ServiceFrameworkBase::InvokeRequest(Kernel::HLERequestContext& ctx) { |
