-
Notifications
You must be signed in to change notification settings - Fork 0
/
libSceGameUpdate.c
74 lines (64 loc) · 3.06 KB
/
libSceGameUpdate.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_sceGameUpdateAbortRequest;
asm(".intel_syntax noprefix\n"
".global sceGameUpdateAbortRequest\n"
".type sceGameUpdateAbortRequest @function\n"
"sceGameUpdateAbortRequest:\n"
"jmp qword ptr [rip + __ptr_sceGameUpdateAbortRequest]\n");
static __attribute__ ((used)) void* __ptr_sceGameUpdateCheck;
asm(".intel_syntax noprefix\n"
".global sceGameUpdateCheck\n"
".type sceGameUpdateCheck @function\n"
"sceGameUpdateCheck:\n"
"jmp qword ptr [rip + __ptr_sceGameUpdateCheck]\n");
static __attribute__ ((used)) void* __ptr_sceGameUpdateCreateRequest;
asm(".intel_syntax noprefix\n"
".global sceGameUpdateCreateRequest\n"
".type sceGameUpdateCreateRequest @function\n"
"sceGameUpdateCreateRequest:\n"
"jmp qword ptr [rip + __ptr_sceGameUpdateCreateRequest]\n");
static __attribute__ ((used)) void* __ptr_sceGameUpdateDeleteRequest;
asm(".intel_syntax noprefix\n"
".global sceGameUpdateDeleteRequest\n"
".type sceGameUpdateDeleteRequest @function\n"
"sceGameUpdateDeleteRequest:\n"
"jmp qword ptr [rip + __ptr_sceGameUpdateDeleteRequest]\n");
static __attribute__ ((used)) void* __ptr_sceGameUpdateGetAddcontLatestVersion;
asm(".intel_syntax noprefix\n"
".global sceGameUpdateGetAddcontLatestVersion\n"
".type sceGameUpdateGetAddcontLatestVersion @function\n"
"sceGameUpdateGetAddcontLatestVersion:\n"
"jmp qword ptr [rip + __ptr_sceGameUpdateGetAddcontLatestVersion]\n");
static __attribute__ ((used)) void* __ptr_sceGameUpdateInitialize;
asm(".intel_syntax noprefix\n"
".global sceGameUpdateInitialize\n"
".type sceGameUpdateInitialize @function\n"
"sceGameUpdateInitialize:\n"
"jmp qword ptr [rip + __ptr_sceGameUpdateInitialize]\n");
static __attribute__ ((used)) void* __ptr_sceGameUpdateTerminate;
asm(".intel_syntax noprefix\n"
".global sceGameUpdateTerminate\n"
".type sceGameUpdateTerminate @function\n"
"sceGameUpdateTerminate:\n"
"jmp qword ptr [rip + __ptr_sceGameUpdateTerminate]\n");
static unsigned short __handle = 0;
static void __attribute__((constructor(104)))
__constructor(void) {
if(sprx_dlopen("libSceGameUpdate", &__handle)) return;
if(sprx_dlsym(__handle, "d1CNGEOaK28", &__ptr_sceGameUpdateAbortRequest)) return;
if(sprx_dlsym(__handle, "LYVV9z8+owM", &__ptr_sceGameUpdateCheck)) return;
if(sprx_dlsym(__handle, "UvcvKaFvupA", &__ptr_sceGameUpdateCreateRequest)) return;
if(sprx_dlsym(__handle, "bcCyjHN5sn0", &__ptr_sceGameUpdateDeleteRequest)) return;
if(sprx_dlsym(__handle, "0g0+Oq9xcI0", &__ptr_sceGameUpdateGetAddcontLatestVersion)) return;
if(sprx_dlsym(__handle, "YJtKLttI9fM", &__ptr_sceGameUpdateInitialize)) return;
if(sprx_dlsym(__handle, "NSH-C-OmoNI", &__ptr_sceGameUpdateTerminate)) return;
}
static void __attribute__((destructor(104)))
__destructor(void) {
sprx_dlclose(__handle);
}