-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibSceHmd2.c
50 lines (43 loc) · 1.93 KB
/
libSceHmd2.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_sceHmd2GazeGetCalibrationData;
asm(".intel_syntax noprefix\n"
".global sceHmd2GazeGetCalibrationData\n"
".type sceHmd2GazeGetCalibrationData @function\n"
"sceHmd2GazeGetCalibrationData:\n"
"jmp qword ptr [rip + __ptr_sceHmd2GazeGetCalibrationData]\n");
static __attribute__ ((used)) void* __ptr_sceHmd2GazeGetCalibrationDataMaxSize;
asm(".intel_syntax noprefix\n"
".global sceHmd2GazeGetCalibrationDataMaxSize\n"
".type sceHmd2GazeGetCalibrationDataMaxSize @function\n"
"sceHmd2GazeGetCalibrationDataMaxSize:\n"
"jmp qword ptr [rip + __ptr_sceHmd2GazeGetCalibrationDataMaxSize]\n");
static __attribute__ ((used)) void* __ptr_sceHmd2Initialize;
asm(".intel_syntax noprefix\n"
".global sceHmd2Initialize\n"
".type sceHmd2Initialize @function\n"
"sceHmd2Initialize:\n"
"jmp qword ptr [rip + __ptr_sceHmd2Initialize]\n");
static __attribute__ ((used)) void* __ptr_sceHmd2Terminate;
asm(".intel_syntax noprefix\n"
".global sceHmd2Terminate\n"
".type sceHmd2Terminate @function\n"
"sceHmd2Terminate:\n"
"jmp qword ptr [rip + __ptr_sceHmd2Terminate]\n");
static unsigned short __handle = 0;
static void __attribute__((constructor(104)))
__constructor(void) {
if(sprx_dlopen("libSceHmd2", &__handle)) return;
if(sprx_dlsym(__handle, "DIU1sFRRaiE", &__ptr_sceHmd2GazeGetCalibrationData)) return;
if(sprx_dlsym(__handle, "LCQzi5ILGrY", &__ptr_sceHmd2GazeGetCalibrationDataMaxSize)) return;
if(sprx_dlsym(__handle, "c812oYs7Vsc", &__ptr_sceHmd2Initialize)) return;
if(sprx_dlsym(__handle, "QU2M1pPNbaY", &__ptr_sceHmd2Terminate)) return;
}
static void __attribute__((destructor(104)))
__destructor(void) {
sprx_dlclose(__handle);
}