From 05a5dc24532d2bbf09e8d205f0e6b657d44953c6 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Tue, 31 Oct 2023 20:06:00 +0200 Subject: [PATCH] fixed unknown nid --- src/core/PS4/Stubs.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/PS4/Stubs.cpp b/src/core/PS4/Stubs.cpp index 3cba831cf..f237f57e0 100644 --- a/src/core/PS4/Stubs.cpp +++ b/src/core/PS4/Stubs.cpp @@ -22,9 +22,10 @@ u64 UnresolvedStub() { LOG_ERROR("Unresolved Stub: called, returning zero to {}\n", __builtin_return_address(0)); return 0; } +static std::string snid; static u64 UnknownStub() { - LOG_ERROR("Stub: Unknown (nid: Unknown) called, returning zero to {}\n", __builtin_return_address(0)); + LOG_ERROR("Stub: Unknown (nid: {} ) called, returning zero to {}\n",snid, __builtin_return_address(0)); return 0; } @@ -66,6 +67,7 @@ static u64 (*stub_handlers[MAX_STUBS])() = { u64 GetStub(const char* nid) { if (UsedStubEntries >= MAX_STUBS) { + snid = std::string(nid); return (u64)&UnknownStub; }