-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathmain.h
101 lines (76 loc) · 3.01 KB
/
main.h
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
/*
* This file is part of PRO CFW.
* PRO CFW is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* PRO CFW is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PRO CFW. If not, see <http://www.gnu.org/licenses/ .
*/
#ifndef MAIN_H
#define MAIN_H
#include <pspsysmem_kernel.h>
#include "systemctrl.h"
#include "systemctrl_se.h"
#include "systemctrl_private.h"
extern u32 psp_model;
extern u32 psp_fw_version;
int PatchExec1(unsigned char * buffer, int * check);
int PatchExec2(unsigned char * buffer, int * check);
int PatchExec3(unsigned char * buffer, int * check, int isplain, int checkresult);
int LoadCoreForKernel_01DB1EB3(unsigned char * buffer, int * check);
int _ProbeExec1(unsigned char * buffer, int * check);
int _ProbeExec2(unsigned char * buffer, int * check);
int _ProbeExec3(unsigned char * buffer, int * check); //GO ONLY
extern int (* ProbeExec3)(unsigned char * buffer, int * check); //GO ONLY
int _sceKernelCheckExecFile(unsigned char * buffer, int * check);
extern int (* PartitionCheck)(unsigned int * st0, unsigned int * check);
int _PartitionCheck(unsigned int * st0, unsigned int * check);
void syspatch_init();
void setup_module_handler(void);
void patch_sceLoaderCore(void);
void patch_sceLoadExec(void);
void load_rebootex_config(void);
void patch_sceMemlmd(void);
void patch_sceInterruptManager(void);
void patch_sceSystemMemoryManager(void);
void patch_sceKernelStartModule(u32 loadcore_text_addr);
#ifdef DEBUG
void validate_stub(SceModule *pMod);
void validate_stub_by_uid(int modid);
void setup_validate_stub(SceModule *mod);
#endif
void patch_umdcache(u32 text_addr);
void prepatch_partitions(void);
void patch_partitions(void);
void unlock_high_memory(u32 forced);
void disable_PauseGame(u32 text_addr);
int is_homebrews_runlevel(void);
void patch_mesgled(SceModule* mod);
void patch_npsignup(u32 text_addr);
void patch_npsignin(u32 text_addr);
void patch_np(u32 text_addr, u8 mayor, u8 minor);
void patch_sceMediaSync(u32 text_addr);
void patch_pspMarch33_Driver(u32 text_addr);
int load_plugins(void);
int load_start_module(char *path);
void usb_charge(void);
int msstor_init(void);
#define MAX_HIGH_MEMSIZE 55
extern u32 g_p2_size;
extern u32 g_p9_size;
extern int g_high_memory_enabled;
int GetConfig(SEConfig *config);
int SetConfig(SEConfig *config);
void load_config(void);
void patch_module_for_version_spoof(SceModule *mod);
void patch_sceChkreg(void);
void patch_sceUSB_Stor_Ms_Driver(SceModule* mod);
extern SEConfig conf;
#include "../CrossFW/cross_fw.h"
#endif