summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-03-12 23:56:02 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2021-03-30 19:40:31 +0200
commit54c1e0897df82b5c61d6058da57db34e1a893fd4 (patch)
treee75bdf609729edf22461e4ceab4d52973bf00e74 /src/core/hle/service
parentservice: Auto stub fallback (diff)
downloadyuzu-54c1e0897df82b5c61d6058da57db34e1a893fd4.tar
yuzu-54c1e0897df82b5c61d6058da57db34e1a893fd4.tar.gz
yuzu-54c1e0897df82b5c61d6058da57db34e1a893fd4.tar.bz2
yuzu-54c1e0897df82b5c61d6058da57db34e1a893fd4.tar.lz
yuzu-54c1e0897df82b5c61d6058da57db34e1a893fd4.tar.xz
yuzu-54c1e0897df82b5c61d6058da57db34e1a893fd4.tar.zst
yuzu-54c1e0897df82b5c61d6058da57db34e1a893fd4.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/service.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index 90260a008..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,10 +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));
-
- LOG_WARNING(Service, "Using auto stub fallback!");
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(RESULT_SUCCESS);
+ 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) {