mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
feat(libSceSystemService): implement Disable/ReenableMediaPlay
This commit is contained in:
@@ -121,13 +121,11 @@ int APS5_VABI sceSystemServiceInitializePlayerDialogParam(void* param) {
|
||||
}
|
||||
|
||||
int APS5_VABI sceSystemServiceDisableMediaPlay() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
return 0;
|
||||
return SYSTEM_SERVICE_OK;
|
||||
}
|
||||
|
||||
int APS5_VABI sceSystemServiceReenableMediaPlay() {
|
||||
NotImplemented_nid_no_patch(__func__);
|
||||
return 0;
|
||||
return SYSTEM_SERVICE_OK;
|
||||
}
|
||||
|
||||
int APS5_VABI sceSystemServiceLaunchPlayerDialog(const void* param) {
|
||||
|
||||
@@ -27,6 +27,8 @@ extern "C" int APS5_VABI sceSystemServicePowerTick(void);
|
||||
extern "C" int APS5_VABI sceSystemServiceReportAbnormalTermination(const void* info);
|
||||
extern "C" int APS5_VABI sceSystemServiceDisableMusicPlayer(void);
|
||||
extern "C" int APS5_VABI sceSystemServiceReenableMusicPlayer(void);
|
||||
extern "C" int APS5_VABI sceSystemServiceDisableMediaPlay(void);
|
||||
extern "C" int APS5_VABI sceSystemServiceReenableMediaPlay(void);
|
||||
|
||||
int main() {
|
||||
Require(sceSystemServicePowerTick() == SYSTEM_SERVICE_OK);
|
||||
@@ -38,6 +40,10 @@ int main() {
|
||||
Require(sceSystemServiceDisableMusicPlayer() == SYSTEM_SERVICE_OK);
|
||||
Require(sceSystemServiceReenableMusicPlayer() == SYSTEM_SERVICE_OK);
|
||||
Require(sceSystemServiceReenableMusicPlayer() == SYSTEM_SERVICE_OK);
|
||||
Require(sceSystemServiceDisableMediaPlay() == SYSTEM_SERVICE_OK);
|
||||
Require(sceSystemServiceDisableMediaPlay() == SYSTEM_SERVICE_OK);
|
||||
Require(sceSystemServiceReenableMediaPlay() == SYSTEM_SERVICE_OK);
|
||||
Require(sceSystemServiceReenableMediaPlay() == SYSTEM_SERVICE_OK);
|
||||
Require(sceSystemServiceGetHdrToneMapLuminance(nullptr) == SYSTEM_SERVICE_ERROR_PARAMETER);
|
||||
SystemServiceHdrToneMapLuminance luminance{-1.0f, -1.0f, -1.0f};
|
||||
Require(sceSystemServiceGetHdrToneMapLuminance(&luminance) == SYSTEM_SERVICE_OK);
|
||||
|
||||
@@ -22,7 +22,7 @@ Throughout the project, every function at every stage either **does exactly what
|
||||
- [libSceAudioPropagation](../../core/libs/prx/libSceAudioPropagation/Export.cpp) implements only the no-acoustic-propagation path: the system keeps a 16-byte header in the title's CPU memory (no GPU memory), rooms, portals, sources and materials are tracked handles, attributes are validated and have no effect, no rays are requested and sources report no audio paths. Ray results, path calculation and audio paths are accepted only when empty and throw otherwise; `sceAudioPropagationSourceRender` writes silence (zeroes) to each source's output buffer for the given size, without a dry signal. Objects still alive when their system is destroyed become unusable, and their later destroy or unregister is a no-op: PPSA21567 releases its reference-counted room, portal and source owners just before `sceAudioPropagationSystemDestroy`, so the order for every object is not proven. Occlusion, reflections and reverb from level geometry are absent; in-game behaviour remains unverified.
|
||||
- [libSceNpCommerce](../../core/libs/prx/libSceNpCommerce/Export.cpp) - the PS Store icon show/hide calls and `sceNpCommerceSetPsStoreIconLayout` do nothing
|
||||
- [libSceUsbd](../../core/libs/prx/libSceUsbd/Export.cpp) implements only the no-device path: `sceUsbdInit` and `sceUsbdExit` succeed without a host USB context, the device list is always empty and event handling waits for its timeout; calls that need a device throw
|
||||
- [libSceSystemService](../../core/libs/prx/libSceSystemService/Export.cpp) - `sceSystemServicePowerTick`, `sceSystemServiceReportAbnormalTermination`, `sceSystemServiceDisableMusicPlayer` and `sceSystemServiceReenableMusicPlayer` return success and do nothing: the host has no auto power-off timer to reset, no system crash reporter to notify and no system music player to pause or resume
|
||||
- [libSceSystemService](../../core/libs/prx/libSceSystemService/Export.cpp) - `sceSystemServicePowerTick`, `sceSystemServiceReportAbnormalTermination`, `sceSystemServiceDisableMusicPlayer`, `sceSystemServiceReenableMusicPlayer`, `sceSystemServiceDisableMediaPlay` and `sceSystemServiceReenableMediaPlay` return success and do nothing: the host has no auto power-off timer to reset, no system crash reporter to notify, no system music player to pause or resume and no system media playback to disable
|
||||
- [libSceBluetoothHid](../../core/libs/prx/libSceBluetoothHid/Export.cpp) implements only the no-device path: initialization and callback and device registration succeed, the callback is never called because no device connects, and calls that need a connected device throw
|
||||
- [sceVideoOutOpen](../../core/libs/prx/libSceVideoOut/src/Output.cpp) validates the priority and CPU affinity that the open param requests for the VideoOut service thread but does not apply them: the port's present and vblank threads are host threads, and guest priorities and affinities do not reach host scheduling
|
||||
- Without `VK_KHR_fragment_shader_barycentric` the shader recompiler [does not load the barycentric VGPRs](../../core/shader/recompiler/Translation/src/InstructionTranslator.cpp): [`v_interp_p1_f32` is dropped and `v_interp_p2_f32` reads the attribute Vulkan interpolated](../../core/shader/recompiler/Translation/src/AttributeInstructions.cpp), so pixel shaders that use the barycentrics for anything other than `v_interp` get wrong values.
|
||||
|
||||
Reference in New Issue
Block a user