mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 08:33:12 -05:00
AnyPS5 resolves a title's imports by NID, so a title that imports a system function no library provides fails to load with an unresolved import. The PS5 3.20 export inventory lists 193 such exports across 37 PS5 system libraries AnyPS5 implements but does not provide. Declare them as throwing stubs so those titles load and reach their next blocker. Each declaration calls NotImplemented_nid_no_patch and returns 0; none of them implements the function. Declarations with a credible prototype use it and cite the source with a pinned commit, and the rest are declared without parameters, which resolves the import without making an ABI claim. The technical-debt files record the limitation per library. libSceMbus and libSceSystemService are left out because pull request #7821 declares them. libSceAgc is left out because its exports are versioned, so the 3.20 NID names a different symbol from the one AnyPS5 ships. libSceAvPlayer.native is left out because it compiles libSceAvPlayer's Export.cpp. Names and NIDs come from the PS5 3.20 export inventory at https://github.com/DNNDHH/PS5-3.20_Libs/tree/b2a77c09cd71c01f34c790cfbe98c751a13262ad
85 lines
1.9 KiB
C++
85 lines
1.9 KiB
C++
#include "prx/libSceMouse/include/MouseState.hpp"
|
|
#include "prx/libc/include/General.hpp"
|
|
|
|
extern "C" {
|
|
|
|
int APS5_VABI sceMouseInit() {
|
|
return Mouse::Initialize();
|
|
}
|
|
|
|
int APS5_VABI sceMouseOpen(int userId, std::int32_t type, std::int32_t index, const void* param) {
|
|
return Mouse::Open(userId, type, index, static_cast<const MouseOpenParam*>(param));
|
|
}
|
|
|
|
int APS5_VABI sceMouseClose(std::int32_t handle) {
|
|
return Mouse::Close(handle);
|
|
}
|
|
|
|
int APS5_VABI sceMouseRead(std::int32_t handle, MouseData* data, std::int32_t num) {
|
|
return Mouse::Read(handle, data, num);
|
|
}
|
|
|
|
void MousePublishInput_nid_no_patch(const MouseInputEvent& event) {
|
|
Mouse::Publish(event);
|
|
}
|
|
|
|
int APS5_VABI sceMouseResetAbsolutePosition(std::int32_t handle, std::uint16_t x, std::uint16_t y) {
|
|
return Mouse::ResetAbsolutePosition(handle, x, y);
|
|
}
|
|
|
|
bool MouseIsOpen_nid_no_patch() {
|
|
return Mouse::IsOpen();
|
|
}
|
|
|
|
int APS5_VABI sceMouseConnectPort() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceMouseDebugGetDeviceId() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceMouseDeviceOpen() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceMouseDisconnectDevice() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceMouseDisconnectPort() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceMouseGetDeviceInfo() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceMouseMbusInit() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceMouseSetHandType() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceMouseSetPointerSpeed() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceMouseSetProcessPrivilege() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
}
|