Move libPS4
[ps4-sdk.git] / libPS4 / include / module.h
blobc8e1e279ebeb1c1d9afb87ef6a17781817c99f66
1 #pragma once
3 #include "types.h"
5 #define RESOLVE(module, name) getFunctionAddressByName(module, #name, &name)
7 struct moduleInfo {
8 size_t size; // 0x0
9 char name[32]; // 0x8
10 char unknown[0xe0]; // 0x28
11 void *codeBase; // 0x108
12 unsigned int codeSize; // 0x110
13 void *dataBase; // 0x118
14 unsigned int dataSize; // 0x120
17 extern int (*sceSysmoduleLoadModule)(int id);
19 int getFunctionAddressByName(int loadedModuleID, char *name, void *destination);
20 int getLoadedModules(int *destination, int max, int *count);
21 int getModuleInfo(int loadedModuleID, struct moduleInfo *destination);
22 int loadModule(const char *name, int *idDestination);
23 int unloadModule(int id);
25 void initModule(void);