mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-02 12:56:05 +00:00
Firmware 13.42's sceNpTrophySystemDbgCtl, GetDbgParam, GetDbgParamInt, SetDbgParam and SetDbgParamInt each return 0x80551692 and do nothing else.
30 lines
996 B
C++
30 lines
996 B
C++
#include "prx/libSceNpTrophy/include/Api.hpp"
|
|
|
|
#include <cstdio>
|
|
#include <cstdlib>
|
|
|
|
int main() {
|
|
constexpr int DebugResult = static_cast<int>(0x80551692u);
|
|
struct Call {
|
|
const char* name;
|
|
int (APS5_VABI* function)();
|
|
};
|
|
const Call calls[] = {
|
|
{"sceNpTrophySystemDbgCtl", sceNpTrophySystemDbgCtl},
|
|
{"sceNpTrophySystemGetDbgParam", sceNpTrophySystemGetDbgParam},
|
|
{"sceNpTrophySystemGetDbgParamInt", sceNpTrophySystemGetDbgParamInt},
|
|
{"sceNpTrophySystemSetDbgParam", sceNpTrophySystemSetDbgParam},
|
|
{"sceNpTrophySystemSetDbgParamInt", sceNpTrophySystemSetDbgParamInt},
|
|
};
|
|
for (const Call& call : calls) {
|
|
for (int attempt = 0; attempt < 2; ++attempt) {
|
|
if (call.function() != DebugResult) {
|
|
std::fprintf(stderr, "%s did not return 0x80551692\n", call.name);
|
|
return 1;
|
|
}
|
|
}
|
|
}
|
|
std::puts("NpTrophy system debug tests passed");
|
|
return 0;
|
|
}
|