Mercurial > hg > early-roguelike
comparison arogue5/mdport.c @ 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 | 3d4252fa2ed3 |
children | 8b6aba552f6f |
comparison
equal
deleted
inserted
replaced
278:c222f9d56776 | 279:d3968e9cb98d |
---|---|
694 #else /* USG5_2.... curses */ | 694 #else /* USG5_2.... curses */ |
695 flushinp(); | 695 flushinp(); |
696 #endif | 696 #endif |
697 } | 697 } |
698 | 698 |
699 extern int scorefd; | |
700 extern char score_file[]; | |
701 | |
702 void | |
703 md_reopen_score(void) | |
704 { | |
705 if (scorefd > 0) | |
706 close(scorefd); | |
707 scorefd = open(score_file, O_RDWR | O_CREAT, 0666); | |
708 } | |
709 | |
710 /* | 699 /* |
711 Cursor/Keypad Support | 700 Cursor/Keypad Support |
712 | 701 |
713 Sadly Cursor/Keypad support is less straightforward than it should be. | 702 Sadly Cursor/Keypad support is less straightforward than it should be. |
714 | 703 |