mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-04 13:07:32 +00:00
refactor(sdk): add canonical headers for remaining libraries
This commit is contained in:
1 parent
35cf8d56cd
commit
f38d29fd08
1491 files changed
+19124
-12458
No files matched your search
@@ -1,3 +1,4 @@
|
||||
#include "prx/libkernel/include/Api.hpp"
|
||||
#include "SceTypes.hpp"
|
||||
#include "prx/libkernel/KernelErrors.hpp"
|
||||
#include <cstdint>
|
||||
@@ -5,8 +6,6 @@
|
||||
#include <stdexcept>
|
||||
#include <string_view>
|
||||
|
||||
extern "C" int APS5_VABI sceKernelGetModuleInfoForUnwind(std::uint64_t address, int flags, ModuleInfoForUnwind* info);
|
||||
|
||||
static std::uint64_t expectedAddress = 0;
|
||||
static int calls = 0;
|
||||
|
||||
@@ -29,6 +28,7 @@ int main() {
|
||||
bool threw = false;
|
||||
try {
|
||||
sceKernelGetModuleInfoForUnwind(expectedAddress, 1, &info);
|
||||
|
||||
} catch (const std::runtime_error& error) {
|
||||
threw = std::string_view(error.what()) == "sceKernelGetModuleInfoForUnwind: failed to query guest module information";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user