diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-09 00:32:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-09 00:32:41 +0200 |
commit | 1744fa6ecf79d4755543f3c472d5c6159655eac1 (patch) | |
tree | 1166668afd72d93acb3c7e165b794e3a3476ace2 /src/core/hle/service | |
parent | Merge pull request #6145 from lat9nq/nvhost_empty_memcpy (diff) | |
parent | configuration: Add auto stub toggle that resets on boot (diff) | |
download | yuzu-1744fa6ecf79d4755543f3c472d5c6159655eac1.tar yuzu-1744fa6ecf79d4755543f3c472d5c6159655eac1.tar.gz yuzu-1744fa6ecf79d4755543f3c472d5c6159655eac1.tar.bz2 yuzu-1744fa6ecf79d4755543f3c472d5c6159655eac1.tar.lz yuzu-1744fa6ecf79d4755543f3c472d5c6159655eac1.tar.xz yuzu-1744fa6ecf79d4755543f3c472d5c6159655eac1.tar.zst yuzu-1744fa6ecf79d4755543f3c472d5c6159655eac1.zip |
Diffstat (limited to 'src/core/hle/service')
-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) { |