mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 00:22:57 -05:00
20 lines
615 B
C++
20 lines
615 B
C++
#include "prx/libc/include/general/VabiMacros.hpp"
|
|
#include <cstdio>
|
|
#include <cstdint>
|
|
#include <stdexcept>
|
|
#include <string>
|
|
|
|
extern "C" int APS5_VABI sceSaveDataCancel(std::uint32_t cancelArgument);
|
|
|
|
int main() {
|
|
try {
|
|
sceSaveDataCancel(0);
|
|
} catch (const std::runtime_error& error) {
|
|
if (std::string(error.what()) == "sceSaveDataCancel not implemented") return 0;
|
|
std::fprintf(stderr, "sceSaveDataCancel threw: %s\n", error.what());
|
|
return 1;
|
|
}
|
|
std::fprintf(stderr, "sceSaveDataCancel returned instead of reporting that it is not implemented\n");
|
|
return 1;
|
|
}
|