nofrendo.h
2.44 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*
** Nofrendo (c) 1998-2000 Matthew Conte (matt@conte.com)
**
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of version 2 of the GNU Library General
** Public License as published by the Free Software Foundation.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** Library General Public License for more details. To obtain a
** copy of the GNU Library General Public License, write to the Free
** Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**
** Any permitted reproduction of these routines, in whole or in part,
** must bear this legend.
**
**
** nofrendo.h (c) 1998-2000 Matthew Conte (matt@conte.com)
** (c) 2000 Neil Stevens (multivac@fcmail.com)
**
** Note: all architectures should call these functions
**
** $Id: nofrendo.h,v 1.2 2001/04/27 11:10:08 neil Exp $
*/
#ifndef _NOFRENDO_H_
#define _NOFRENDO_H_
int nofrendo_main(int argc, char *argv[]);
typedef enum
{
system_unknown,
system_autodetect,
system_nes,
NUM_SUPPORTED_SYSTEMS
} system_t;
/* osd_main should end with a call to main_loop().
** Pass filename = NULL if you want to start with the demo rom
*/
extern int main_loop(const char *filename, system_t type);
/* These should not be called directly. Use the event interface */
extern void main_insert(const char *filename, system_t type);
extern void main_eject(void);
extern void main_quit(void);
extern int nofrendo_ticks(void);
#endif /* !_NOFRENDO_H_ */
/*
** $Log: nofrendo.h,v $
** Revision 1.2 2001/04/27 11:10:08 neil
** compile
**
** Revision 1.1.1.1 2001/04/27 07:03:54 neil
** initial
**
** Revision 1.9 2000/11/25 20:26:05 matt
** removed fds "system"
**
** Revision 1.8 2000/11/20 13:22:12 matt
** standardized timer ISR, added nofrendo_ticks
**
** Revision 1.7 2000/11/01 14:15:35 matt
** multi-system event system, or whatever
**
** Revision 1.6 2000/10/25 13:42:02 matt
** strdup - giddyap!
**
** Revision 1.5 2000/10/25 01:23:08 matt
** basic system autodetection
**
** Revision 1.4 2000/10/23 15:52:04 matt
** better system handling
**
** Revision 1.3 2000/07/31 04:28:46 matt
** one million cleanups
**
** Revision 1.2 2000/07/27 01:16:36 matt
** sorted out the video problems
**
** Revision 1.1 2000/07/26 21:36:13 neil
** Big honkin' change -- see the mailing list
**
**
*/