-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibSceAt9Enc.c
58 lines (50 loc) · 2.13 KB
/
libSceAt9Enc.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
51
52
53
54
55
56
57
58
/*
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_sceAt9EncClearContext;
asm(".intel_syntax noprefix\n"
".global sceAt9EncClearContext\n"
".type sceAt9EncClearContext @function\n"
"sceAt9EncClearContext:\n"
"jmp qword ptr [rip + __ptr_sceAt9EncClearContext]\n");
static __attribute__ ((used)) void* __ptr_sceAt9EncCreateEncoder;
asm(".intel_syntax noprefix\n"
".global sceAt9EncCreateEncoder\n"
".type sceAt9EncCreateEncoder @function\n"
"sceAt9EncCreateEncoder:\n"
"jmp qword ptr [rip + __ptr_sceAt9EncCreateEncoder]\n");
static __attribute__ ((used)) void* __ptr_sceAt9EncEncode;
asm(".intel_syntax noprefix\n"
".global sceAt9EncEncode\n"
".type sceAt9EncEncode @function\n"
"sceAt9EncEncode:\n"
"jmp qword ptr [rip + __ptr_sceAt9EncEncode]\n");
static __attribute__ ((used)) void* __ptr_sceAt9EncFlush;
asm(".intel_syntax noprefix\n"
".global sceAt9EncFlush\n"
".type sceAt9EncFlush @function\n"
"sceAt9EncFlush:\n"
"jmp qword ptr [rip + __ptr_sceAt9EncFlush]\n");
static __attribute__ ((used)) void* __ptr_sceAt9EncQueryMemSize;
asm(".intel_syntax noprefix\n"
".global sceAt9EncQueryMemSize\n"
".type sceAt9EncQueryMemSize @function\n"
"sceAt9EncQueryMemSize:\n"
"jmp qword ptr [rip + __ptr_sceAt9EncQueryMemSize]\n");
static unsigned short __handle = 0;
static void __attribute__((constructor(104)))
__constructor(void) {
if(sprx_dlopen("libSceAt9Enc", &__handle)) return;
if(sprx_dlsym(__handle, "ZE8DFcSverk", &__ptr_sceAt9EncClearContext)) return;
if(sprx_dlsym(__handle, "gujP4afE9dQ", &__ptr_sceAt9EncCreateEncoder)) return;
if(sprx_dlsym(__handle, "WBgTbIYvODM", &__ptr_sceAt9EncEncode)) return;
if(sprx_dlsym(__handle, "jOnUkmU6pyQ", &__ptr_sceAt9EncFlush)) return;
if(sprx_dlsym(__handle, "1iDLkHJ4gbA", &__ptr_sceAt9EncQueryMemSize)) return;
}
static void __attribute__((destructor(104)))
__destructor(void) {
sprx_dlclose(__handle);
}