mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 10:35:03 +00:00
fixed unknown nid
This commit is contained in:
parent
6fba3a4380
commit
05a5dc2453
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user