ipmi: use 0x30010 lnc method for ps5

thanks ga2mer for investigation
This commit is contained in:
DH 2024-11-21 14:30:07 +03:00
parent 1f9cd4561c
commit c3edcfe6e6

View file

@ -569,9 +569,19 @@ void ipmi::createShellCoreObjects(orbis::Process *process) {
createIpmiServer(process, "SceSystemLoggerService");
createIpmiServer(process, "SceLoginMgrServer");
int lnsStatusServer;
if (orbis::g_context.fwType == orbis::FwType::Ps5) {
lnsStatusServer = 0x30010;
} else {
if (orbis::g_context.fwSdkVersion > 0x6000000) {
lnsStatusServer = 0x30013;
} else {
lnsStatusServer = 0x30010;
}
}
createIpmiServer(process, "SceLncService")
.addSyncMethod(orbis::g_context.fwSdkVersion > 0x6000000 ? 0x30013
: 0x30010,
.addSyncMethod(lnsStatusServer,
[](void *out, std::uint64_t &size) -> std::int32_t {
struct SceLncServiceAppStatus {
std::uint32_t unk0;