-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibSceHidControl.c
202 lines (176 loc) · 9.25 KB
/
libSceHidControl.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
/*
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_sceHidControlConnectHandle;
asm(".intel_syntax noprefix\n"
".global sceHidControlConnectHandle\n"
".type sceHidControlConnectHandle @function\n"
"sceHidControlConnectHandle:\n"
"jmp qword ptr [rip + __ptr_sceHidControlConnectHandle]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlConnectPort;
asm(".intel_syntax noprefix\n"
".global sceHidControlConnectPort\n"
".type sceHidControlConnectPort @function\n"
"sceHidControlConnectPort:\n"
"jmp qword ptr [rip + __ptr_sceHidControlConnectPort]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlDisconnectDevice;
asm(".intel_syntax noprefix\n"
".global sceHidControlDisconnectDevice\n"
".type sceHidControlDisconnectDevice @function\n"
"sceHidControlDisconnectDevice:\n"
"jmp qword ptr [rip + __ptr_sceHidControlDisconnectDevice]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlDisconnectHandle;
asm(".intel_syntax noprefix\n"
".global sceHidControlDisconnectHandle\n"
".type sceHidControlDisconnectHandle @function\n"
"sceHidControlDisconnectHandle:\n"
"jmp qword ptr [rip + __ptr_sceHidControlDisconnectHandle]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlDisconnectPort;
asm(".intel_syntax noprefix\n"
".global sceHidControlDisconnectPort\n"
".type sceHidControlDisconnectPort @function\n"
"sceHidControlDisconnectPort:\n"
"jmp qword ptr [rip + __ptr_sceHidControlDisconnectPort]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlGetAuthInformation;
asm(".intel_syntax noprefix\n"
".global sceHidControlGetAuthInformation\n"
".type sceHidControlGetAuthInformation @function\n"
"sceHidControlGetAuthInformation:\n"
"jmp qword ptr [rip + __ptr_sceHidControlGetAuthInformation]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlGetBatteryState;
asm(".intel_syntax noprefix\n"
".global sceHidControlGetBatteryState\n"
".type sceHidControlGetBatteryState @function\n"
"sceHidControlGetBatteryState:\n"
"jmp qword ptr [rip + __ptr_sceHidControlGetBatteryState]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlGetDeviceId;
asm(".intel_syntax noprefix\n"
".global sceHidControlGetDeviceId\n"
".type sceHidControlGetDeviceId @function\n"
"sceHidControlGetDeviceId:\n"
"jmp qword ptr [rip + __ptr_sceHidControlGetDeviceId]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlGetDeviceInfo;
asm(".intel_syntax noprefix\n"
".global sceHidControlGetDeviceInfo\n"
".type sceHidControlGetDeviceInfo @function\n"
"sceHidControlGetDeviceInfo:\n"
"jmp qword ptr [rip + __ptr_sceHidControlGetDeviceInfo]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlGetDeviceName;
asm(".intel_syntax noprefix\n"
".global sceHidControlGetDeviceName\n"
".type sceHidControlGetDeviceName @function\n"
"sceHidControlGetDeviceName:\n"
"jmp qword ptr [rip + __ptr_sceHidControlGetDeviceName]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlGetJediExtensionUnitInfo;
asm(".intel_syntax noprefix\n"
".global sceHidControlGetJediExtensionUnitInfo\n"
".type sceHidControlGetJediExtensionUnitInfo @function\n"
"sceHidControlGetJediExtensionUnitInfo:\n"
"jmp qword ptr [rip + __ptr_sceHidControlGetJediExtensionUnitInfo]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlGetJediState;
asm(".intel_syntax noprefix\n"
".global sceHidControlGetJediState\n"
".type sceHidControlGetJediState @function\n"
"sceHidControlGetJediState:\n"
"jmp qword ptr [rip + __ptr_sceHidControlGetJediState]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlGetSparkState;
asm(".intel_syntax noprefix\n"
".global sceHidControlGetSparkState\n"
".type sceHidControlGetSparkState @function\n"
"sceHidControlGetSparkState:\n"
"jmp qword ptr [rip + __ptr_sceHidControlGetSparkState]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlGetVersionInfo;
asm(".intel_syntax noprefix\n"
".global sceHidControlGetVersionInfo\n"
".type sceHidControlGetVersionInfo @function\n"
"sceHidControlGetVersionInfo:\n"
"jmp qword ptr [rip + __ptr_sceHidControlGetVersionInfo]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlInit;
asm(".intel_syntax noprefix\n"
".global sceHidControlInit\n"
".type sceHidControlInit @function\n"
"sceHidControlInit:\n"
"jmp qword ptr [rip + __ptr_sceHidControlInit]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlSetApplicationFocus;
asm(".intel_syntax noprefix\n"
".global sceHidControlSetApplicationFocus\n"
".type sceHidControlSetApplicationFocus @function\n"
"sceHidControlSetApplicationFocus:\n"
"jmp qword ptr [rip + __ptr_sceHidControlSetApplicationFocus]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlSetHandleState;
asm(".intel_syntax noprefix\n"
".global sceHidControlSetHandleState\n"
".type sceHidControlSetHandleState @function\n"
"sceHidControlSetHandleState:\n"
"jmp qword ptr [rip + __ptr_sceHidControlSetHandleState]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlSetJediAudioOutPath;
asm(".intel_syntax noprefix\n"
".global sceHidControlSetJediAudioOutPath\n"
".type sceHidControlSetJediAudioOutPath @function\n"
"sceHidControlSetJediAudioOutPath:\n"
"jmp qword ptr [rip + __ptr_sceHidControlSetJediAudioOutPath]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlSetJediVolumeGain;
asm(".intel_syntax noprefix\n"
".global sceHidControlSetJediVolumeGain\n"
".type sceHidControlSetJediVolumeGain @function\n"
"sceHidControlSetJediVolumeGain:\n"
"jmp qword ptr [rip + __ptr_sceHidControlSetJediVolumeGain]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlSetProcessFocus;
asm(".intel_syntax noprefix\n"
".global sceHidControlSetProcessFocus\n"
".type sceHidControlSetProcessFocus @function\n"
"sceHidControlSetProcessFocus:\n"
"jmp qword ptr [rip + __ptr_sceHidControlSetProcessFocus]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlSetRevokeList;
asm(".intel_syntax noprefix\n"
".global sceHidControlSetRevokeList\n"
".type sceHidControlSetRevokeList @function\n"
"sceHidControlSetRevokeList:\n"
"jmp qword ptr [rip + __ptr_sceHidControlSetRevokeList]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlSetRevokeList2;
asm(".intel_syntax noprefix\n"
".global sceHidControlSetRevokeList2\n"
".type sceHidControlSetRevokeList2 @function\n"
"sceHidControlSetRevokeList2:\n"
"jmp qword ptr [rip + __ptr_sceHidControlSetRevokeList2]\n");
static __attribute__ ((used)) void* __ptr_sceHidControlSetUserColor;
asm(".intel_syntax noprefix\n"
".global sceHidControlSetUserColor\n"
".type sceHidControlSetUserColor @function\n"
"sceHidControlSetUserColor:\n"
"jmp qword ptr [rip + __ptr_sceHidControlSetUserColor]\n");
static unsigned short __handle = 0;
static void __attribute__((constructor(104)))
__constructor(void) {
if(sprx_dlopen("libSceHidControl", &__handle)) return;
if(sprx_dlsym(__handle, "ONyH3TlLDx0", &__ptr_sceHidControlConnectHandle)) return;
if(sprx_dlsym(__handle, "aVvm-afVQlo", &__ptr_sceHidControlConnectPort)) return;
if(sprx_dlsym(__handle, "V3x+8S9k1vc", &__ptr_sceHidControlDisconnectDevice)) return;
if(sprx_dlsym(__handle, "AVtf1JiYnQI", &__ptr_sceHidControlDisconnectHandle)) return;
if(sprx_dlsym(__handle, "nYX3q3hser8", &__ptr_sceHidControlDisconnectPort)) return;
if(sprx_dlsym(__handle, "smqnBlj5tfk", &__ptr_sceHidControlGetAuthInformation)) return;
if(sprx_dlsym(__handle, "akmC1nXbrLE", &__ptr_sceHidControlGetBatteryState)) return;
if(sprx_dlsym(__handle, "Gtfab+eP6GM", &__ptr_sceHidControlGetDeviceId)) return;
if(sprx_dlsym(__handle, "u2GrRj85Riw", &__ptr_sceHidControlGetDeviceInfo)) return;
if(sprx_dlsym(__handle, "EfvzrKzujQE", &__ptr_sceHidControlGetDeviceName)) return;
if(sprx_dlsym(__handle, "AURXo5jFRu0", &__ptr_sceHidControlGetJediExtensionUnitInfo)) return;
if(sprx_dlsym(__handle, "Yu1iUgPHM+w", &__ptr_sceHidControlGetJediState)) return;
if(sprx_dlsym(__handle, "Pc92TjYbXpc", &__ptr_sceHidControlGetSparkState)) return;
if(sprx_dlsym(__handle, "-Ix48F8rGYI", &__ptr_sceHidControlGetVersionInfo)) return;
if(sprx_dlsym(__handle, "Y1WkAv+vINM", &__ptr_sceHidControlInit)) return;
if(sprx_dlsym(__handle, "JcPje9m3yyc", &__ptr_sceHidControlSetApplicationFocus)) return;
if(sprx_dlsym(__handle, "IVjtw0AuSBE", &__ptr_sceHidControlSetHandleState)) return;
if(sprx_dlsym(__handle, "hS1-bPYxKC4", &__ptr_sceHidControlSetJediAudioOutPath)) return;
if(sprx_dlsym(__handle, "+Xne3E9M-E8", &__ptr_sceHidControlSetJediVolumeGain)) return;
if(sprx_dlsym(__handle, "vY-muZt5ojc", &__ptr_sceHidControlSetProcessFocus)) return;
if(sprx_dlsym(__handle, "0ypWH4DpK9E", &__ptr_sceHidControlSetRevokeList)) return;
if(sprx_dlsym(__handle, "niYrNjsCULE", &__ptr_sceHidControlSetRevokeList2)) return;
if(sprx_dlsym(__handle, "6wfdbeqaQco", &__ptr_sceHidControlSetUserColor)) return;
}
static void __attribute__((destructor(104)))
__destructor(void) {
sprx_dlclose(__handle);
}