This repository has been archived by the owner on Apr 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathfile.h
58 lines (40 loc) · 1.44 KB
/
file.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
#ifndef __FILE_H__
#define __FILE_H__
#include <psp2/io/dirent.h>
#include <psp2/io/fcntl.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <psp2/net/http.h>
#include <psp2/net/net.h>
#include <psp2/net/netctl.h>
#define printf psvDebugScreenPrintf
#define TRANSFER_SIZE 64 * 1024 //64kb
#define MAX_PATH_LENGTH 1024
char PSP_GAME_ID[32];
struct PSPContent {
char titleID[16]; //TITLE_ID
char title[128]; //TITLE
};
struct PSPContent content_array[256]; //array with infos
char *getEbootTitle(char *src_path);
int doesFileExist(const char* path);
int doesDirExist(const char* path);
int copyFile(char *src_path, char *dst_path);
int getFileSize(const char *file);
int createEmptyFile(char *path);
int makePath(const char *dir);
int removePath(char *path);
int download_file(const char *src, const char *dst);
void get_id_of_psp_game_that_adrenaline_is_installed_to(char *taiconfig, char *path);
int write_adrenaline_to_config(char *taiconfig, char *path, char *id);
int delete_adrenaline_from_config(char *taiconfig, char *path, char *id);
int check_for_psp_content(char *path);
void trigger_update_database();
void trigger_rebuild_database();
int writeChangeinfo(const char* id);
int checkUnsafeHomebrew();
char *getRealFirmwareVersion(int arg);
char *read_installed_adrenaline_version(char *path);
int write_installed_adrenaline_version(char *path, char *arg);
#endif