forked from codestation/nploader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nploader.h
58 lines (45 loc) · 1.96 KB
/
nploader.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
/*
* nploader module
*
* Copyright (C) 2011 Codestation
*
* This program 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.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef NPLOADER_H_
#define NPLOADER_H_
#include <pspsdk.h>
#include <pspiofilemgr_stat.h>
#include "pgd.h"
extern SceUID (*sceIoOpen_func)(const char *file, int flags, SceMode mode);
extern SceUID (*sceIoOpenAsync_func)(const char *file, int flags, SceMode mode);
extern SceUID (*sceIoDopen_func)(const char *dirname);
int (*sceIoChdir_func)(const char *path);
int (*sceIoGetstat_func)(const char *file, SceIoStat *stat);
extern int (*sceNpDrmEdataSetupKey_func)(SceUID fd);
extern SceOff (*sceNpDrmEdataGetDataSize_func)(SceUID fd);
extern int (*sceNpDrmRenameCheck_func)(const char *file);
extern SceUID (*sceKernelLoadModuleNpDrm_func)(const char *path, int flags, SceKernelLMOption *option);
SceUID np_open(const char *file, int flags, SceMode mode);
SceUID np_open_async(const char *file, int flags, SceMode mode);
SceUID np_dopen(const char *dirname);
int np_chdir(const char *path);
int np_stat(const char *file, SceIoStat *stat);
int np_setup(SceUID fd);
SceOff np_size(SceUID fd);
int np_rename(const char *file);
SceUID np_load(const char *path, int flags, SceKernelLMOption *option);
int (* setup_edat_version_key)(u8 *vkey, u8 *edat, int size);
int setup_edat_version_key_hook(u8 *vkey, u8 *edat, int size);
u32 tou32(u8 *buf);
#endif /* NPLOADER_H_ */