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
30
struct
sceMcColor
{
31
u_int
r
;
32
u_int
g
;
33
u_int
b
;
34
u_int
a
;
35
};
36
37
STATIC_ASSERT(
sizeof
(
sceMcColor
) == 0x10);
38
42
typedef
float
sceMcColorF[4];
43
47
typedef
float
sceMcVu0FVECTOR[4];
48
52
struct
sceMcIconSys
{
53
char
head
[4];
54
u_short
unknown1
;
55
u_short
nl_offset
;
56
u_int
unknown2
;
57
u_int
trans_rate
;
58
sceMcColor
bg_color
[4];
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
69
STATIC_ASSERT(
sizeof
(
sceMcIconSys
) == 0x3C4);
70
71
#ifdef __cplusplus
72
extern
"C"
{
73
#endif
74
78
int
sceMcInit(
void
);
79
84
int
sceMcSync(
int
mode,
int
*cmd,
int
*result);
85
89
int
sceMcOpen(
int
port,
int
slot,
char
*name,
int
flag);
90
94
int
sceMcClose(
int
fd);
95
99
int
sceMcRead(
int
fd,
void
*buffer,
int
size);
100
104
int
sceMcWrite(
int
fd,
void
*buffer,
int
size);
105
109
int
sceMcFlush(
int
fd);
110
114
int
sceMcChdir(
int
port,
int
slot,
char
*name,
char
*current);
115
119
int
sceMcMkdir(
int
port,
int
slot,
char
*name);
120
124
int
sceMcDelete(
int
port,
int
slot,
char
*name);
125
129
int
sceMcGetDir(
int
port,
int
slot,
char
*name,
unsigned
int
mode,
int
count,
void
*table);
130
134
int
sceMcGetInfo(
int
port,
int
slot,
int
*type,
int
*free_size,
int
*formatted);
135
139
int
sceMcFormat(
int
port,
int
slot);
140
144
int
sceMcUnformat(
int
port,
int
slot);
145
#ifdef __cplusplus
146
}
147
#endif
sceMcColor
Definition
libmc.h:30
sceMcColor::a
u_int a
Definition
libmc.h:34
sceMcColor::b
u_int b
Definition
libmc.h:33
sceMcColor::g
u_int g
Definition
libmc.h:32
sceMcColor::r
u_int r
Definition
libmc.h:31
sceMcIconSys
Definition
libmc.h:52
sceMcIconSys::bg_color
sceMcColor bg_color[4]
Definition
libmc.h:58
sceMcIconSys::ambient
sceMcColorF ambient
Definition
libmc.h:61
sceMcIconSys::unknown1
u_short unknown1
Definition
libmc.h:54
sceMcIconSys::head
char head[4]
Definition
libmc.h:53
sceMcIconSys::title_name
u_char title_name[68]
Definition
libmc.h:62
sceMcIconSys::light_color
sceMcColorF light_color[3]
Definition
libmc.h:60
sceMcIconSys::fname_del
char fname_del[64]
Definition
libmc.h:65
sceMcIconSys::fname_copy
char fname_copy[64]
Definition
libmc.h:64
sceMcIconSys::trans_rate
u_int trans_rate
Definition
libmc.h:57
sceMcIconSys::reserve
u_char reserve[512]
Definition
libmc.h:66
sceMcIconSys::unknown2
u_int unknown2
Definition
libmc.h:56
sceMcIconSys::light_dir
sceMcVu0FVECTOR light_dir[3]
Definition
libmc.h:59
sceMcIconSys::nl_offset
u_short nl_offset
Definition
libmc.h:55
sceMcIconSys::fname_view
char fname_view[64]
Definition
libmc.h:63
ps2
include
sce
libmc.h
Generated by
1.9.8