Mercurial > hg > forks > pwpunix
annotate final_isi/main.c @ 69:c13a2f8c5b10
Rename files and some minor cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 01 Jun 2012 17:41:15 +0300 |
parents | final_isi/fisimain.c@53676367d46f |
children |
rev | line source |
---|---|
0 | 1 #include <stdio.h> |
2 #include <stdlib.h> | |
51
53676367d46f
Hack Final Isi to "work", kind of. Requires a nasty hack in pwplib to actually run (without it, it quits abruptly .. not yet sure why.)
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
3 #include "pwplib.h" |
0 | 4 |
5 char setup_english=0; | |
6 | |
7 extern void playtick(); | |
8 | |
9 int main(int argc,char**argv) | |
10 { | |
51
53676367d46f
Hack Final Isi to "work", kind of. Requires a nasty hack in pwplib to actually run (without it, it quits abruptly .. not yet sure why.)
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
11 if(!pwplib_init(argc,argv))return 1; |
0 | 12 |
13 pwpwrite("final isi (1st at abduction '98 pc introcompo)\n"); | |
14 | |
15 pwplib.videobuf.width=80; | |
16 pwplib.videobuf.height=50; | |
17 | |
18 if(!pwplib.setup[SETUP_NOSOUND]) | |
19 pwplib.player=playtick; | |
20 | |
21 precalx(); | |
22 | |
23 pwpwrite(setup_english?"using the english language\n" | |
24 :"puhumme suomea\n"); | |
25 | |
26 pwplib_startup(); | |
27 | |
28 demoloop(); | |
29 | |
30 pwplib_end(); | |
31 | |
32 return 0; | |
33 } |