mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 16:43:05 -05:00
- libSceAgc: SetIndexCount, SetBaseIndirectArgs, DispatchIndirect, wait and write-data patch functions, relaxed checks for what titles send, NOP fillers for LOD stats and wait-until-safe, NotImplemented stubs. - libSceSaveData.native: short mount points, backup events, save-data memory slots. - user/system service, store dialog, video-out flip modes and queue-full error, pad read, fibers, offline behaviour for network/NP modules, and new export-only modules Ampr, JpegEnc, Json2, MsgDialog.native, NpCppWebApi, NpUtility. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0177gthrWEBBfBu5xJDXgBfo
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
#include <cstdint>
|
|
#include <cstddef>
|
|
#include "SceTypes.hpp"
|
|
#include "prx/libc/include/General.hpp"
|
|
#include <atomic>
|
|
|
|
// Peer-to-peer signaling needs the network: contexts exist, but sessions never activate.
|
|
static constexpr int SCE_NP_SESSION_SIGNALING_ERROR_INVALID_ARGUMENT = static_cast<int>(0x80552D02);
|
|
static constexpr int SCE_NP_SESSION_SIGNALING_ERROR_UNAVAILABLE = static_cast<int>(0x80552D06);
|
|
static std::atomic<uint32_t> g_nextContext{1};
|
|
|
|
extern "C" {
|
|
|
|
int APS5_VABI sceNpSessionSignalingInitialize(void* param) {
|
|
(void)param;
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpSessionSignalingActivateSession(void) {
|
|
return SCE_NP_SESSION_SIGNALING_ERROR_UNAVAILABLE;
|
|
}
|
|
|
|
int APS5_VABI sceNpSessionSignalingCreateContext2(const void* param, uint32_t* context_id) {
|
|
(void)param;
|
|
if (!context_id) return SCE_NP_SESSION_SIGNALING_ERROR_INVALID_ARGUMENT;
|
|
*context_id = g_nextContext.fetch_add(1, std::memory_order_relaxed);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpSessionSignalingDeactivate(uint32_t context_id) {
|
|
(void)context_id;
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpSessionSignalingDestroyContext(uint32_t context_id) {
|
|
(void)context_id;
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpSessionSignalingGetConnectionInfo(void) {
|
|
return SCE_NP_SESSION_SIGNALING_ERROR_UNAVAILABLE;
|
|
}
|
|
|
|
int APS5_VABI sceNpSessionSignalingTerminate(void) {
|
|
return 0;
|
|
}
|
|
|
|
}
|