2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

service: Print correct command ID on unimplemented function.

This commit is contained in:
bunnei 2017-10-17 18:02:08 -04:00
parent 4fb1b24d68
commit d3cc369618

View file

@ -85,7 +85,7 @@ void ServiceFrameworkBase::RegisterHandlersBase(const FunctionInfoBase* function
void ServiceFrameworkBase::ReportUnimplementedFunction(Kernel::HLERequestContext& ctx,
const FunctionInfoBase* info) {
auto cmd_buf = ctx.CommandBuffer();
std::string function_name = info == nullptr ? fmt::format("{:#08x}", cmd_buf[0]) : info->name;
std::string function_name = info == nullptr ? fmt::format("{:#08x}", ctx.GetCommand()) : info->name;
fmt::MemoryWriter w;
w.write("function '{}': port='{}' cmd_buf={{[0]={:#x}", function_name, service_name,