Module example
[ps4-sdk.git] / source / module.c
blob3d5aa3a4d563d593560af2ea12e1a1cf04ca988d
1 #include "syscall.h"
3 #include "module.h"
5 int getFunctionAddressByName(int loadedModuleID, char *name, void *destination) {
6 return syscall(591, loadedModuleID, name, destination);
9 int getLoadedModules(int *destination, int max, int *count) {
10 return syscall(592, destination, max, count);
13 int getModuleInfo(int loadedModuleID, struct moduleInfo *destination) {
14 return syscall(593, loadedModuleID, destination);
17 int loadModule(char *name, int *idDestination) {
18 return syscall(594, name, 0, idDestination, 0);
21 int unloadModule(int id) {
22 return syscall(595, id, 0, 0);