-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibSceDipsw.c
90 lines (78 loc) · 3.6 KB
/
libSceDipsw.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
/*
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_sceKernelCheckDipsw;
asm(".intel_syntax noprefix\n"
".global sceKernelCheckDipsw\n"
".type sceKernelCheckDipsw @function\n"
"sceKernelCheckDipsw:\n"
"jmp qword ptr [rip + __ptr_sceKernelCheckDipsw]\n");
static __attribute__ ((used)) void* __ptr_sceKernelInitializeDipsw;
asm(".intel_syntax noprefix\n"
".global sceKernelInitializeDipsw\n"
".type sceKernelInitializeDipsw @function\n"
"sceKernelInitializeDipsw:\n"
"jmp qword ptr [rip + __ptr_sceKernelInitializeDipsw]\n");
static __attribute__ ((used)) void* __ptr_sceKernelIsAssistMode;
asm(".intel_syntax noprefix\n"
".global sceKernelIsAssistMode\n"
".type sceKernelIsAssistMode @function\n"
"sceKernelIsAssistMode:\n"
"jmp qword ptr [rip + __ptr_sceKernelIsAssistMode]\n");
static __attribute__ ((used)) void* __ptr_sceKernelIsDevelopmentMode;
asm(".intel_syntax noprefix\n"
".global sceKernelIsDevelopmentMode\n"
".type sceKernelIsDevelopmentMode @function\n"
"sceKernelIsDevelopmentMode:\n"
"jmp qword ptr [rip + __ptr_sceKernelIsDevelopmentMode]\n");
static __attribute__ ((used)) void* __ptr_sceKernelIsDisableRazor;
asm(".intel_syntax noprefix\n"
".global sceKernelIsDisableRazor\n"
".type sceKernelIsDisableRazor @function\n"
"sceKernelIsDisableRazor:\n"
"jmp qword ptr [rip + __ptr_sceKernelIsDisableRazor]\n");
static __attribute__ ((used)) void* __ptr_sceKernelReadDipswData;
asm(".intel_syntax noprefix\n"
".global sceKernelReadDipswData\n"
".type sceKernelReadDipswData @function\n"
"sceKernelReadDipswData:\n"
"jmp qword ptr [rip + __ptr_sceKernelReadDipswData]\n");
static __attribute__ ((used)) void* __ptr_sceKernelSetDipsw;
asm(".intel_syntax noprefix\n"
".global sceKernelSetDipsw\n"
".type sceKernelSetDipsw @function\n"
"sceKernelSetDipsw:\n"
"jmp qword ptr [rip + __ptr_sceKernelSetDipsw]\n");
static __attribute__ ((used)) void* __ptr_sceKernelUnsetDipsw;
asm(".intel_syntax noprefix\n"
".global sceKernelUnsetDipsw\n"
".type sceKernelUnsetDipsw @function\n"
"sceKernelUnsetDipsw:\n"
"jmp qword ptr [rip + __ptr_sceKernelUnsetDipsw]\n");
static __attribute__ ((used)) void* __ptr_sceKernelWriteDipswData;
asm(".intel_syntax noprefix\n"
".global sceKernelWriteDipswData\n"
".type sceKernelWriteDipswData @function\n"
"sceKernelWriteDipswData:\n"
"jmp qword ptr [rip + __ptr_sceKernelWriteDipswData]\n");
static unsigned short __handle = 0;
static void __attribute__((constructor(104)))
__constructor(void) {
if(sprx_dlopen("libSceDipsw", &__handle)) return;
if(sprx_dlsym(__handle, "JSNgID8Bupk", &__ptr_sceKernelCheckDipsw)) return;
if(sprx_dlsym(__handle, "W2u-cvNkvOY", &__ptr_sceKernelInitializeDipsw)) return;
if(sprx_dlsym(__handle, "PKg59uLpHNI", &__ptr_sceKernelIsAssistMode)) return;
if(sprx_dlsym(__handle, "UtO0OHMCgmI", &__ptr_sceKernelIsDevelopmentMode)) return;
if(sprx_dlsym(__handle, "Q+SDBl-5rmk", &__ptr_sceKernelIsDisableRazor)) return;
if(sprx_dlsym(__handle, "ScfnaxnQXn4", &__ptr_sceKernelReadDipswData)) return;
if(sprx_dlsym(__handle, "HBsPvq47HNA", &__ptr_sceKernelSetDipsw)) return;
if(sprx_dlsym(__handle, "OF8D1S5kgMw", &__ptr_sceKernelUnsetDipsw)) return;
if(sprx_dlsym(__handle, "853R8RXtPMY", &__ptr_sceKernelWriteDipswData)) return;
}
static void __attribute__((destructor(104)))
__destructor(void) {
sprx_dlclose(__handle);
}