ps5: fix audiod failure

thanks ga2mer for investigation
This commit is contained in:
DH 2024-11-21 02:52:21 +03:00
parent 20f8ff7881
commit bb684f87b1
2 changed files with 8 additions and 6 deletions

View file

@ -751,8 +751,9 @@ SysResult kern_sysctl(Thread *thread, ptr<sint> name, uint namelen,
return ErrorCode::INVAL;
}
if (std::string_view((char *)thread->tproc->appInfo.titleId) ==
"NPXS20973") {
if (g_context.fwType != FwType::Ps5 &&
std::string_view((char *)thread->tproc->appInfo.titleId.data()) ==
"NPXS20973") {
ORBIS_LOG_ERROR("get tsc freq: returning patched value");
*(uint64_t *)old = 1000000;
} else {