summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ameerj2021-03-12 16:59:39 -0500
committerGravatar ameerj2021-03-30 13:40:31 -0400
commite6e61424d4ec2e668131af7e8010cfc206b7ad16 (patch)
treee9249c7b8dc48d54e7e67063ce47f9bc033dc885 /src
parentMerge pull request #6124 from jbeich/vulkan+opengl (diff)
downloadyuzu-e6e61424d4ec2e668131af7e8010cfc206b7ad16.tar.gz
yuzu-e6e61424d4ec2e668131af7e8010cfc206b7ad16.tar.xz
yuzu-e6e61424d4ec2e668131af7e8010cfc206b7ad16.zip
service: Auto stub fallback
For simple services we can implement an automatic stub fallback to help with compatibility until a proper implementation is done. Co-Authored-By: Chloe <25727384+ognik5377@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/service.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index 1da56bc27..90260a008 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.cpp
@@ -146,6 +146,10 @@ void ServiceFrameworkBase::ReportUnimplementedFunction(Kernel::HLERequestContext
146 system.GetReporter().SaveUnimplementedFunctionReport(ctx, ctx.GetCommand(), function_name, 146 system.GetReporter().SaveUnimplementedFunctionReport(ctx, ctx.GetCommand(), function_name,
147 service_name); 147 service_name);
148 UNIMPLEMENTED_MSG("Unknown / unimplemented {}", fmt::to_string(buf)); 148 UNIMPLEMENTED_MSG("Unknown / unimplemented {}", fmt::to_string(buf));
149
150 LOG_WARNING(Service, "Using auto stub fallback!");
151 IPC::ResponseBuilder rb{ctx, 2};
152 rb.Push(RESULT_SUCCESS);
149} 153}
150 154
151void ServiceFrameworkBase::InvokeRequest(Kernel::HLERequestContext& ctx) { 155void ServiceFrameworkBase::InvokeRequest(Kernel::HLERequestContext& ctx) {