-
Notifications
You must be signed in to change notification settings - Fork 0
/
libSceHmdSetupDialog.c
74 lines (64 loc) · 3.07 KB
/
libSceHmdSetupDialog.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
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_sceHmdSetupDialogClose;
asm(".intel_syntax noprefix\n"
".global sceHmdSetupDialogClose\n"
".type sceHmdSetupDialogClose @function\n"
"sceHmdSetupDialogClose:\n"
"jmp qword ptr [rip + __ptr_sceHmdSetupDialogClose]\n");
static __attribute__ ((used)) void* __ptr_sceHmdSetupDialogGetResult;
asm(".intel_syntax noprefix\n"
".global sceHmdSetupDialogGetResult\n"
".type sceHmdSetupDialogGetResult @function\n"
"sceHmdSetupDialogGetResult:\n"
"jmp qword ptr [rip + __ptr_sceHmdSetupDialogGetResult]\n");
static __attribute__ ((used)) void* __ptr_sceHmdSetupDialogGetStatus;
asm(".intel_syntax noprefix\n"
".global sceHmdSetupDialogGetStatus\n"
".type sceHmdSetupDialogGetStatus @function\n"
"sceHmdSetupDialogGetStatus:\n"
"jmp qword ptr [rip + __ptr_sceHmdSetupDialogGetStatus]\n");
static __attribute__ ((used)) void* __ptr_sceHmdSetupDialogInitialize;
asm(".intel_syntax noprefix\n"
".global sceHmdSetupDialogInitialize\n"
".type sceHmdSetupDialogInitialize @function\n"
"sceHmdSetupDialogInitialize:\n"
"jmp qword ptr [rip + __ptr_sceHmdSetupDialogInitialize]\n");
static __attribute__ ((used)) void* __ptr_sceHmdSetupDialogOpen;
asm(".intel_syntax noprefix\n"
".global sceHmdSetupDialogOpen\n"
".type sceHmdSetupDialogOpen @function\n"
"sceHmdSetupDialogOpen:\n"
"jmp qword ptr [rip + __ptr_sceHmdSetupDialogOpen]\n");
static __attribute__ ((used)) void* __ptr_sceHmdSetupDialogTerminate;
asm(".intel_syntax noprefix\n"
".global sceHmdSetupDialogTerminate\n"
".type sceHmdSetupDialogTerminate @function\n"
"sceHmdSetupDialogTerminate:\n"
"jmp qword ptr [rip + __ptr_sceHmdSetupDialogTerminate]\n");
static __attribute__ ((used)) void* __ptr_sceHmdSetupDialogUpdateStatus;
asm(".intel_syntax noprefix\n"
".global sceHmdSetupDialogUpdateStatus\n"
".type sceHmdSetupDialogUpdateStatus @function\n"
"sceHmdSetupDialogUpdateStatus:\n"
"jmp qword ptr [rip + __ptr_sceHmdSetupDialogUpdateStatus]\n");
static unsigned short __handle = 0;
static void __attribute__((constructor(104)))
__constructor(void) {
if(sprx_dlopen("libSceHmdSetupDialog", &__handle)) return;
if(sprx_dlsym(__handle, "nmHzU4Gh0xs", &__ptr_sceHmdSetupDialogClose)) return;
if(sprx_dlsym(__handle, "6lVRHMV5LY0", &__ptr_sceHmdSetupDialogGetResult)) return;
if(sprx_dlsym(__handle, "J9eBpW1udl4", &__ptr_sceHmdSetupDialogGetStatus)) return;
if(sprx_dlsym(__handle, "NB1Y2kA2jCY", &__ptr_sceHmdSetupDialogInitialize)) return;
if(sprx_dlsym(__handle, "NNgiV4T+akU", &__ptr_sceHmdSetupDialogOpen)) return;
if(sprx_dlsym(__handle, "+z4OJmFreZc", &__ptr_sceHmdSetupDialogTerminate)) return;
if(sprx_dlsym(__handle, "Ud7j3+RDIBg", &__ptr_sceHmdSetupDialogUpdateStatus)) return;
}
static void __attribute__((destructor(104)))
__destructor(void) {
sprx_dlclose(__handle);
}