mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-06 13:30:00 +00:00
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.
24 lines
668 B
C++
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;
|
|
}
|