Skip to content

Commit

Permalink
ipmi: use 0x30010 lnc method for ps5
Browse files Browse the repository at this point in the history
thanks ga2mer for investigation
  • Loading branch information
DHrpcs3 committed Nov 21, 2024
1 parent 1f9cd45 commit c3edcfe
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions rpcsx/ipmi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c3edcfe

Please sign in to comment.