Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/yabause/src/bios.h
2 views
1
/* Copyright 2006 Theo Berkau
2
3
This file is part of Yabause.
4
5
Yabause is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
10
Yabause is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with Yabause; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
20
#ifndef BIOS_H
21
#define BIOS_H
22
23
#include "sh2core.h"
24
25
typedef struct
26
{
27
char filename[12];
28
char comment[11];
29
u8 language;
30
u8 year;
31
u8 month;
32
u8 day;
33
u8 hour;
34
u8 minute;
35
u8 week;
36
u32 datasize;
37
u16 blocksize;
38
} saveinfo_struct;
39
40
typedef struct
41
{
42
u8 id;
43
char name[32];
44
} deviceinfo_struct;
45
46
void BiosInit(void);
47
int FASTCALL BiosHandleFunc(SH2_struct * sh);
48
49
deviceinfo_struct *BupGetDeviceList(int *numdevices);
50
int BupGetStats(u32 device, u32 *freespace, u32 *maxspace);
51
saveinfo_struct *BupGetSaveList(u32 device, int *numsaves);
52
int BupDeleteSave(u32 device, const char *savename);
53
void BupFormat(u32 device);
54
int BupCopySave(u32 srcdevice, u32 dstdevice, const char *savename);
55
int BupImportSave(u32 device, const char *filename);
56
int BupExportSave(u32 device, const char *savename, const char *filename);
57
#endif
58
59
60