Mercurial > hg > index.fcgi > lj > lj046-2players
comparison src/ljgba.h @ 0:c84446dfb3f5
initial add
author | paulo@localhost |
---|---|
date | Fri, 13 Mar 2009 00:39:12 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:77a9f4bb0efd |
---|---|
1 /* GBA frontend for LOCKJAW, an implementation of the Soviet Mind Game | |
2 | |
3 Copyright (C) 2006 Damian Yerrick <tepples+lj@spamcop.net> | |
4 | |
5 This work 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 This program 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 this program; if not, write to the Free Software | |
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
18 | |
19 Original game concept and design by Alexey Pajitnov. | |
20 The Software is not sponsored or endorsed by Alexey Pajitnov, Elorg, | |
21 or The Tetris Company LLC. | |
22 | |
23 */ | |
24 | |
25 #ifndef LJGBA_H | |
26 #define LJGBA_H | |
27 | |
28 #include <gba.h> | |
29 #include <stdlib.h> | |
30 #include "ljcontrol.h" | |
31 | |
32 struct LJPCView { | |
33 const u16 *sndData[4]; | |
34 u8 sndLeft[4]; | |
35 }; | |
36 | |
37 void textout(const char *str, int x, int y, int c); | |
38 void isr(void); | |
39 void cls(void); | |
40 void vsync(void); | |
41 LJBits readPad(unsigned int player); | |
42 extern volatile int curTime; | |
43 | |
44 void install_sound(struct LJPCView *v); | |
45 void gba_poll_sound(struct LJPCView *v); | |
46 void gba_play_sound(struct LJPCView *v, int effect); | |
47 | |
48 extern unsigned char customPrefs[]; | |
49 void options(LJView *view, unsigned char *prefs); | |
50 void debrief(const LJView *v); | |
51 #endif |