mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
Merge pull request #881 from adriadam10/fix/errcodes-ngs2-signaling
fix(libs): use the referenced NGS2 handle and session signaling argument error codes
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
static constexpr int SCE_NGS2_OK = 0;
|
||||
static constexpr int SCE_NGS2_ERROR_INVALID_OUT_ADDRESS = static_cast<int>(0x804A8010);
|
||||
static constexpr int SCE_NGS2_ERROR_INVALID_OUT_SIZE = static_cast<int>(0x804A8011);
|
||||
static constexpr int SCE_NGS2_ERROR_INVALID_SYSTEM_HANDLE = static_cast<int>(0x804A8201);
|
||||
static constexpr int SCE_NGS2_ERROR_INVALID_RACK_HANDLE = static_cast<int>(0x804A8202);
|
||||
static constexpr int SCE_NGS2_ERROR_INVALID_SYSTEM_HANDLE = static_cast<int>(0x804A0230);
|
||||
static constexpr int SCE_NGS2_ERROR_INVALID_RACK_HANDLE = static_cast<int>(0x804A0261);
|
||||
static constexpr int SCE_NGS2_ERROR_INVALID_WAVEFORM_DATA = static_cast<int>(0x804A8430);
|
||||
static constexpr int SCE_NGS2_ERROR_INVALID_WAVEFORM_FORMAT = static_cast<int>(0x804A8431);
|
||||
static constexpr int SCE_NGS2_ERROR_UNKNOWN_WAVEFORM_FORMAT = static_cast<int>(0x804A8432);
|
||||
|
||||
@@ -37,8 +37,8 @@ static void TestErrorsAndInfo() {
|
||||
Require(sceNgs2RackQueryBufferSize(SCE_NGS2_RACK_ID_SAMPLER, nullptr, nullptr) == SCE_NGS2_ERROR_INVALID_OUT_ADDRESS);
|
||||
|
||||
Ngs2SystemInfo info{};
|
||||
Require(sceNgs2SystemGetInfo(0x1234, &info, sizeof(info)) == SCE_NGS2_ERROR_INVALID_SYSTEM_HANDLE);
|
||||
Require(sceNgs2RackDestroy(0x1234, nullptr) == SCE_NGS2_ERROR_INVALID_RACK_HANDLE);
|
||||
Require(sceNgs2SystemGetInfo(0x1234, &info, sizeof(info)) == static_cast<int>(0x804A0230u));
|
||||
Require(sceNgs2RackDestroy(0x1234, nullptr) == static_cast<int>(0x804A0261u));
|
||||
|
||||
const auto system = CreateSystem();
|
||||
CreateRack(system, SCE_NGS2_RACK_ID_SAMPLER);
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#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_INVALID_ARGUMENT = static_cast<int>(0x80553303);
|
||||
static constexpr int SCE_NP_SESSION_SIGNALING_ERROR_UNAVAILABLE = static_cast<int>(0x80552D06);
|
||||
static std::atomic<uint32_t> g_nextContext{1};
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ int APS5_VABI sceNpSessionSignalingTerminate(void);
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr int InvalidArgument = static_cast<int>(0x80552D02u);
|
||||
constexpr int InvalidArgument = static_cast<int>(0x80553303u);
|
||||
constexpr int Unavailable = static_cast<int>(0x80552D06u);
|
||||
|
||||
void Require(bool condition, const char* message) {
|
||||
|
||||
Reference in New Issue
Block a user