summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-04-09 00:32:41 +0200
committerGitHub <noreply@github.com>2021-04-09 00:32:41 +0200
commit1744fa6ecf79d4755543f3c472d5c6159655eac1 (patch)
tree1166668afd72d93acb3c7e165b794e3a3476ace2 /src/core
parentMerge pull request #6145 from lat9nq/nvhost_empty_memcpy (diff)
parentconfiguration: Add auto stub toggle that resets on boot (diff)
downloadyuzu-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')
-rw-r--r--src/core/hle/service/service.cpp6
-rw-r--r--src/core/settings.h1
2 files changed, 7 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) {
diff --git a/src/core/settings.h b/src/core/settings.h
index d849dded3..a81016b23 100644
--- a/src/core/settings.h
+++ b/src/core/settings.h
@@ -222,6 +222,7 @@ struct Values {
bool quest_flag;
bool disable_macro_jit;
bool extended_logging;
+ bool use_auto_stub;
// Miscellaneous
std::string log_filter;