Files
AnyPS5/core/libs/tests/GuestAvPlayerNative.cpp
T
Yunus Shaikh 856a0b78d5 test(prx): check that the newly built exports are exported, not that they throw
A check that a placeholder throws "not implemented" fails as soon as the
export is implemented. The export tables now only require each entry's
address, so they still fail to build when an export goes missing, and an
implementation doesn't break them. The libSceNgs2 calls with real
signatures go into the same kind of table.

Asked for in oneandonlydean's review.
2026-10-25 23:02:58 -07:00

24 lines
668 B
C++

#include "prx/libSceAvPlayer.native/include/Api.hpp"
#include "SceTypes.hpp"
#include "prx/libc/include/general/VabiMacros.hpp"
#include <cstdio>
int main() {
struct Export {
int (APS5_VABI* function)(void);
const char* name;
};
const Export exports[] = {
{sceAvPlayerPrintf, "sceAvPlayerPrintf"},
{sceAvPlayerVprintf, "sceAvPlayerVprintf"},
};
for (const auto& entry : exports) {
if (entry.function == nullptr) {
std::fprintf(stderr, "%s is not exported\n", entry.name);
return 1;
}
}
std::puts("libSceAvPlayer.native pending exports are exported");
return 0;
}