DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
libmc.h
1#pragma once
2
3#define MC_WAIT 0
4#define MC_NOWAIT 1
5
6#define sceMcIniSucceed 0
7#define sceMcIniErrKernel (-101)
8#define sceMcIniOldMcserv (-120)
9#define sceMcIniOldMcman (-121)
10
11#define sceMcResSucceed 0
12#define sceMcResChangedCard (-1)
13#define sceMcResNoFormat (-2)
14#define sceMcResFullDevice (-3)
15#define sceMcResNoEntry (-4)
16#define sceMcResDeniedPermit (-5)
17#define sceMcResFailReplace (-8)
18#define sceMcResFailDetect (-12)
19
20#define sceMcTypeNoCard 0
21#define sceMcTypePS1 1
22#define sceMcTypePS2 2
23#define sceMcTypePDA 3
24
25#include "common.h"
26
30struct sceMcColor {
31 u_int r;
32 u_int g;
33 u_int b;
34 u_int a;
35};
36
37STATIC_ASSERT(sizeof(sceMcColor) == 0x10);
38
42typedef float sceMcColorF[4];
43
47typedef float sceMcVu0FVECTOR[4];
48
53 char head[4];
54 u_short unknown1;
55 u_short nl_offset;
56 u_int unknown2;
57 u_int trans_rate;
59 sceMcVu0FVECTOR light_dir[3];
60 sceMcColorF light_color[3];
61 sceMcColorF ambient;
62 u_char title_name[68];
63 char fname_view[64];
64 char fname_copy[64];
65 char fname_del[64];
66 u_char reserve[512];
67};
68
69STATIC_ASSERT(sizeof(sceMcIconSys) == 0x3C4);
70
71#ifdef __cplusplus
72extern "C" {
73#endif
74
78int sceMcInit(void);
79
84int sceMcSync(int mode, int *cmd, int *result);
85
89int sceMcOpen(int port, int slot, char *name, int flag);
90
94int sceMcClose(int fd);
95
99int sceMcRead(int fd, void *buffer, int size);
100
104int sceMcWrite(int fd, void *buffer, int size);
105
109int sceMcFlush(int fd);
110
114int sceMcChdir(int port, int slot, char *name, char *current);
115
119int sceMcMkdir(int port, int slot, char *name);
120
124int sceMcDelete(int port, int slot, char *name);
125
129int sceMcGetDir(int port, int slot, char *name, unsigned int mode, int count, void *table);
130
134int sceMcGetInfo(int port, int slot, int *type, int *free_size, int *formatted);
135
139int sceMcFormat(int port, int slot);
140
144int sceMcUnformat(int port, int slot);
145#ifdef __cplusplus
146}
147#endif
u_int a
Definition libmc.h:34
u_int b
Definition libmc.h:33
u_int g
Definition libmc.h:32
u_int r
Definition libmc.h:31
sceMcColor bg_color[4]
Definition libmc.h:58
sceMcColorF ambient
Definition libmc.h:61
u_short unknown1
Definition libmc.h:54
char head[4]
Definition libmc.h:53
u_char title_name[68]
Definition libmc.h:62
sceMcColorF light_color[3]
Definition libmc.h:60
char fname_del[64]
Definition libmc.h:65
char fname_copy[64]
Definition libmc.h:64
u_int trans_rate
Definition libmc.h:57
u_char reserve[512]
Definition libmc.h:66
u_int unknown2
Definition libmc.h:56
sceMcVu0FVECTOR light_dir[3]
Definition libmc.h:59
u_short nl_offset
Definition libmc.h:55
char fname_view[64]
Definition libmc.h:63