Mercurial > hg > early-roguelike
comparison srogue/rogue.ext @ 279:d3968e9cb98d
Use C stdio functions for score files and save files.
Switching from Unix file descriptor operations to C standard FILE*
functions will reduce portability problems.
author | John "Elwin" Edwards |
---|---|
date | Fri, 15 Sep 2017 19:57:54 -0400 |
parents | b67b99f6c92b |
children | 057c5114e244 |
comparison
equal
deleted
inserted
replaced
278:c222f9d56776 | 279:d3968e9cb98d |
---|---|
90 void doctor(int fromfuse); | 90 void doctor(int fromfuse); |
91 void draw_room(struct room *rp); | 91 void draw_room(struct room *rp); |
92 int drop(struct linked_list *item); | 92 int drop(struct linked_list *item); |
93 bool dropcheck(struct object *op); | 93 bool dropcheck(struct object *op); |
94 void eat(void); | 94 void eat(void); |
95 int encread(void *starta, unsigned int size, int inf); | 95 int encread(void *starta, unsigned int size, FILE *inf); |
96 void encwrite(void *starta, unsigned int size, FILE *outf); | 96 void encwrite(void *starta, unsigned int size, FILE *outf); |
97 void endit(int a); | 97 void endit(int a); |
98 void endmsg(void); | 98 void endmsg(void); |
99 void extinguish(void (*func)()); | 99 void extinguish(void (*func)()); |
100 int extras(void); | 100 int extras(void); |
198 int rnd_room(void); | 198 int rnd_room(void); |
199 struct coord *rndmove(struct thing *who); | 199 struct coord *rndmove(struct thing *who); |
200 int roll(int number, int sides); | 200 int roll(int number, int sides); |
201 void rollwand(int fromfuse); | 201 void rollwand(int fromfuse); |
202 struct room *roomin(struct coord *cp); | 202 struct room *roomin(struct coord *cp); |
203 int rs_restore_file(int inf); | 203 int rs_restore_file(FILE *inf); |
204 int rs_save_file(FILE *savef); | 204 int rs_save_file(FILE *savef); |
205 void runners(void); | 205 void runners(void); |
206 void runto(struct coord *runner, struct coord *spot); | 206 void runto(struct coord *runner, struct coord *spot); |
207 void sapem(int fromfuse); | 207 void sapem(int fromfuse); |
208 bool save(int which); | 208 bool save(int which); |