mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-05 17:11:09 +00:00
Firmware 13.42's module reads the app category on every sceCamera2 call and, below 0x1000000 except 0x20f00, refuses an uninitialized Camera2 with 0x8a760002. Close and the 28 handle calls then refuse any handle sceCamera2Open didn't return, Initialize sets the flag, and Finalize refuses while a camera is open. Open and IsAttached check their arguments before the driver.
190 lines
4.0 KiB
C++
190 lines
4.0 KiB
C++
#include "prx/libSceCamera/include/Api.hpp"
|
|
#include <cstdint>
|
|
#include <cstddef>
|
|
#include "SceTypes.hpp"
|
|
#include "prx/libc/include/General.hpp"
|
|
|
|
#include "prx/libSceCamera/include/Camera.hpp"
|
|
|
|
extern "C" {
|
|
|
|
int APS5_VABI sceCameraIsAttached(int32_t index) {
|
|
if (index != 0) return SCE_CAMERA_ERROR_PARAM;
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraGetDeviceIDWithoutOpen(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraInitializeRegistryCalibData(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraGetConnectedDeviceAndDriverMode(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraSetTrackerMode(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraGetCalibDataForEve(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraIsConnectedForSystem(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraSetRegister(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraSetVideoSyncInternal(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraSetAttributeInternal(void) {
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraGetCalibDataFromDeviceForEve(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraGetVrCaptureInfo(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraSetCalibDataForEve(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraSetCalibData(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraSetProcessFocusByHandle(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraAccGetData(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraAudioClose(void) {
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraChangeAppModuleState(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraOpenByModuleId(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCamera2GetCalibrationData(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraAudioGetData(void* data) {
|
|
return data ? 0 : SCE_CAMERA_ERROR_PARAM;
|
|
}
|
|
|
|
int APS5_VABI sceCameraGetCalibData(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraWaitForEveReady(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraAudioGetData2(void* data) {
|
|
return data ? 0 : SCE_CAMERA_ERROR_PARAM;
|
|
}
|
|
|
|
int APS5_VABI sceCameraSetAppModuleFocus(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraGetDeviceID(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraSetForceActivate(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraSetProcessFocus(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraDeviceOpen(void) {
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraSetUacModeInternal(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraGetRegister(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraRemoveAppModuleFocus(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraWaitForLukeReady(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraSetDebugStop(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraIsConfigChangeDone(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraSetVideoSync(void) {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceCameraAudioReset(void) {
|
|
return 0;
|
|
}
|
|
}
|