Files
ppsspp/Core/HLE/scePower.h
T
Henrik RydgårdandClaude Opus 5.5 9fa53c8337 HLE: Add sceKernelSetParamSfo and sceMePowerControlAvcPower
The VSH's sceVshBridge_Driver calls both when launching a game, and some
firmware versions give up on the launch unless they succeed (5.xx for the
first, 2.00 for the second). Neither has anything to do here: our HLE
LoadExec reads the PBP itself, and there's no AVC decoder to power.

Added under the NIDs whose names are known: sceKernelSetParamSfo's old,
5.xx and 6.60 NIDs (from DC-M33's NID resolver, Adrenaline's NID table and
uOFW), and sceMePowerControlAvcPower's old and 6.60 NIDs (jpcsp's
psplibdoc, uOFW). Appended at the end of SysMemForKernel, and
sceMePower_driver registered last.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 20:33:34 +02:00

39 lines
1.3 KiB
C++

// Copyright (c) 2012- PPSSPP Project.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0 or later versions.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#pragma once
class PointerWrap;
void __PowerInit();
void __PowerDoState(PointerWrap &p);
void Register_scePower();
void Register_scePower_driver();
void Register_sceMePower_driver();
void Register_sceSuspendForUser();
int KernelVolatileMemLock(int type, u32 paddr, u32 psize);
int KernelVolatileMemUnlock(int type);
// Returns 0 for default.
int GetLockedCPUSpeedMhz();
// Scales a duration measured at the default 222MHz to the current clock. The whole system runs
// from the one PLL - CPU, bus, the Media Engine and the GE - so hardware work speeds up with it.
int PowerScaleFromDefaultClock(int us);