-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibSceDseehx.c
50 lines (43 loc) · 1.71 KB
/
libSceDseehx.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
This file was generated by genstub.py, do not edit manually!
*/
int sprx_dlsym(unsigned int handle, const char *nid, void *addr);
int sprx_dlopen(const char* libname, unsigned short *handle);
int sprx_dlclose(unsigned int handle);
static __attribute__ ((used)) void* __ptr_sceDseehxConvert;
asm(".intel_syntax noprefix\n"
".global sceDseehxConvert\n"
".type sceDseehxConvert @function\n"
"sceDseehxConvert:\n"
"jmp qword ptr [rip + __ptr_sceDseehxConvert]\n");
static __attribute__ ((used)) void* __ptr_sceDseehxExtInit;
asm(".intel_syntax noprefix\n"
".global sceDseehxExtInit\n"
".type sceDseehxExtInit @function\n"
"sceDseehxExtInit:\n"
"jmp qword ptr [rip + __ptr_sceDseehxExtInit]\n");
static __attribute__ ((used)) void* __ptr_sceDseehxFlush;
asm(".intel_syntax noprefix\n"
".global sceDseehxFlush\n"
".type sceDseehxFlush @function\n"
"sceDseehxFlush:\n"
"jmp qword ptr [rip + __ptr_sceDseehxFlush]\n");
static __attribute__ ((used)) void* __ptr_sceDseehxInit;
asm(".intel_syntax noprefix\n"
".global sceDseehxInit\n"
".type sceDseehxInit @function\n"
"sceDseehxInit:\n"
"jmp qword ptr [rip + __ptr_sceDseehxInit]\n");
static unsigned short __handle = 0;
static void __attribute__((constructor(104)))
__constructor(void) {
if(sprx_dlopen("libSceDseehx", &__handle)) return;
if(sprx_dlsym(__handle, "hYqnvZqn6XA", &__ptr_sceDseehxConvert)) return;
if(sprx_dlsym(__handle, "f3w+k7lAQKg", &__ptr_sceDseehxExtInit)) return;
if(sprx_dlsym(__handle, "Ob34lg2OTG0", &__ptr_sceDseehxFlush)) return;
if(sprx_dlsym(__handle, "Sfr8N-9Sdhw", &__ptr_sceDseehxInit)) return;
}
static void __attribute__((destructor(104)))
__destructor(void) {
sprx_dlclose(__handle);
}