Home
last modified time | relevance | path

Searched refs:highscore_fp (Results 1 – 8 of 8) sorted by relevance

/dports/games/moria/umoria/source/
H A Ddeath.c268 if (feof (highscore_fp))
297 set_fileptr(highscore_fp);
301 while (!feof(highscore_fp))
383 if (feof (highscore_fp)) in duplicate_character()
402 set_fileptr(highscore_fp); in duplicate_character()
415 while (!feof(highscore_fp)) in duplicate_character()
705 if (feof (highscore_fp)) in highscores()
722 (void) fseek (highscore_fp, (long)ftell (highscore_fp), L_SET); in highscores()
784 if (feof(highscore_fp)) in highscores()
802 (void) fseek(highscore_fp, (long)ftell(highscore_fp) - in highscores()
[all …]
H A Dfiles.c83 highscore_fp = fopen(MORIA_TOP, "rb+"); in init_scorefile()
85 highscore_fp = fopen(MORIA_TOP, "r+"); in init_scorefile()
88 if (highscore_fp == NULL) in init_scorefile()
91 highscore_fp = fopen (MORIA_TOP, "wb"); /* Create it if not there. */ in init_scorefile()
92 if (highscore_fp == NULL) in init_scorefile()
107 fclose (highscore_fp); in init_scorefile()
H A Dvariable.c34 FILE *highscore_fp; /* File pointer to high score file */ variable
H A Dexterns.h81 extern FILE *highscore_fp; /* High score file pointer */
H A Dio.c768 (void) fclose(highscore_fp);
/dports/games/moria/umoria/util/scores/
H A Dprint.c37 FILE *highscore_fp; variable
66 (void) setmode (fileno(highscore_fp), O_BINARY);
70 (void) fseek(highscore_fp, (long)0, L_SET);
72 (void) fseek(highscore_fp, (off_t)0, L_SET);
76 version_maj = getc (highscore_fp);
77 version_min = getc (highscore_fp);
78 patch_level = getc (highscore_fp);
80 if (feof (highscore_fp))
106 set_fileptr(highscore_fp);
111 while (!feof(highscore_fp))
[all …]
H A Ddelete.c37 FILE *highscore_fp; variable
76 (void) fseek(highscore_fp, (long)0, L_SET);
78 (void) fseek(highscore_fp, (off_t)0, L_SET);
82 version_maj = getc (highscore_fp);
83 version_min = getc (highscore_fp);
84 patch_level = getc (highscore_fp);
86 if (feof (highscore_fp))
106 set_fileptr(highscore_fp);
110 while (!feof(highscore_fp))
114 while (!feof(highscore_fp) && i < 21)
[all …]
/dports/games/njam/njam-1.25-src/src/
H A Dnjam.cpp53 static FILE* highscore_fp; variable
64 highscore_fp = fopen("/var/games/njam.hs", "r+"); in main()
264 if (highscore_fp) in ~NjamEngine()
266 rewind(highscore_fp); in ~NjamEngine()
268 …fprintf(highscore_fp, "%s#%d#%d#\n", TopTenScores[i].name, TopTenScores[i].points, TopTenScores[i]… in ~NjamEngine()
269 fclose(highscore_fp); in ~NjamEngine()
700 if (highscore_fp) in Init()
705 while (!feof(highscore_fp) && number < 10) in Init()
707 fgets(buff, 40, highscore_fp); in Init()