-
Notifications
You must be signed in to change notification settings - Fork 38
/
module.h
22 lines (13 loc) · 921 Bytes
/
module.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#include "common.h"
#include <kernel_ex.h>
#define DLSYM_MANGLED_NAME 0x1
SceKernelModule sceKernelLoadStartModuleFromSandbox(const char* name, size_t args, const void* argp, unsigned int flags, const SceKernelLoadModuleOpt* opts, int* res);
int sceKernelGetModuleInfo(SceKernelModule handle, SceKernelModuleInfo* info);
int sceKernelGetModuleInfoEx(SceKernelModule handle, SceKernelModuleInfoEx* info);
int sceKernelGetModuleInfoByName(const char* name, SceKernelModuleInfo* info);
int sceKernelGetModuleInfoExByName(const char* name, SceKernelModuleInfoEx* info);
int sceKernelDlsymEx(SceKernelModule handle, const char* symbol, const char* lib, unsigned int flags, void** addrp);
bool get_module_base(const char* name, uint64_t* base, uint64_t* size);
typedef void module_patch_cb_t(void* arg, uint8_t* base, uint64_t size);
bool patch_module(const char* name, module_patch_cb_t* cb, void* arg);