-
Notifications
You must be signed in to change notification settings - Fork 23
/
hl.h
25 lines (18 loc) · 792 Bytes
/
hl.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
#pragma once
/* copy file, host to PFS */
int copyto(const char *mount_point, const char *dest, const char *src);
/* copy file, PFS to host */
int copyfrom(const char *mount_point, const char *src, const char *dest);
/* list files at PFS */
int list_dir_objects(int dh, int lsmode);
int ls(const char *mount_point, const char *path);
/* list HDD partitions */
int lspart(int lsmode);
/* create PFS onto an existing partition */
int mkpfs(const char *mount_point);
/* create partition of any type and format it as PFS if type=0x0100;
* so far the only sizes supported are powers of 2 */
int mkpart(const char *mount_point, long size_in_mb, int format);
/* initialize PS2 HDD with APA partitioning and create common partitions
* (__mbr, __common, __net, etc.) */
int initialize(void);