/
dcbackup.h
58 lines (48 loc) · 2.15 KB
/
dcbackup.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
/********************************************************************
* Shinobi Library Sample
* Copyright (c) 1998 SEGA
*
* Library : Backup Library
* Module : Library Sample Header
* File : backup.h
* Date : 1999-01-14
* Version : 1.00
*
********************************************************************/
#ifndef _BACKUP_H_
#define _BACKUP_H_
#include <sg_bup.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/******** メモリカード情報構造体 *******************************************/
/******** Memory card information structure ********************************/
typedef struct {
Uint16 Ready; /* メモリカードが接続されているか */
/* Is memory card connected ? */
Uint16 IsFormat; /* フォーマットされているかどうか */
/* Is memory card formatted ? */
Uint32 LastError; /* 最後に発生したエラーコード */
/* Error code which occured last. */
Uint32 ProgressCount; /* 処理経過カウント */
/* Operation progress count. */
Uint32 ProgressMax; /* 処理経過カウント最大 */
/* Operattion progress count maximum. */
Uint32 Operation; /* 処理中のオペレーションコード */
/* Operation code in handling now. */
BUS_DISKINFO DiskInfo; /* ドライブ情報 */
/* Drive information. */
} BACKUPINFO;
void BupInit(void);
void BupExit(void);
const BACKUPINFO* BupGetInfo(Sint32 drive);
const char* BupGetErrorString(Sint32 err);
const char* BupGetOperationString(Sint32 op);
Sint32 BupLoad(Sint32 drive, const char* fname, void* buf);
Sint32 BupSave(Sint32 drive, const char* fname, void* buf, Sint32 nblock);
Sint32 BupDelete(Sint32 drive, const char* fname);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* _BACKUP_H_ */
/******************************* end of file *******************************/