Home
last modified time | relevance | path

Searched refs:scorefile (Results 1 – 25 of 323) sorted by relevance

12345678910>>...13

/dports/games/tornado/tornado-1.4/
H A Dscores.c39 FILE *scorefile; in read_score_file() local
44 scorefile = fopen(SCOREFILE_NAME, "r"); in read_score_file()
45 if (scorefile == NULL) { in read_score_file()
50 fgets(line, sizeof(line), scorefile); in read_score_file()
51 fgets(line, sizeof(line), scorefile); in read_score_file()
85 fclose(scorefile); in read_score_file()
93 FILE *scorefile; in write_score_file() local
97 scorefile = fopen(SCOREFILE_NAME, "w"); in write_score_file()
98 if (scorefile == NULL) { in write_score_file()
107 fputs(line, scorefile); in write_score_file()
[all …]
/dports/games/xrobots/xrobots-1.0/
H A Dscore.c77 static FILE *scorefile = 0; variable
92 if(scorefile) {
94 flock(scorefile->_file, LOCK_UN);
96 fclose(scorefile);
111 flock(scorefile->_file, LOCK_EX); in load_scores()
118 if(!fgetc(scorefile)) /* and newline */ in load_scores()
157 if( !scorefile ) in write_out_scores()
159 rewind(scorefile); in write_out_scores()
278 if(scorefile) { in show_scores_callback()
280 flock(scorefile->_file, LOCK_UN); in show_scores_callback()
[all …]
/dports/games/xpipeman/xpipeman/
H A Dscore.c73 static FILE *scorefile = 0; variable
88 if(scorefile) {
90 flock(scorefile->_file, LOCK_UN);
92 fclose(scorefile);
108 flock(scorefile->_file, LOCK_EX); in load_scores()
159 if( !scorefile ) in write_out_scores()
161 rewind(scorefile); in write_out_scores()
163 fprintf(scorefile,"%5s%25s%4s\n", in write_out_scores()
282 if(scorefile) { in show_scores_callback()
284 flock(scorefile->_file, LOCK_UN); in show_scores_callback()
[all …]
/dports/games/quadra/quadra-1.3.0/server/
H A Dqserv.pl110 my($scorefile) = @_;
112 if($scorefile !~ m/(\d+)/) {
115 $scorefile = $1;
120 return $scorefile;
192 $scorefile = is_score($scorefile);
193 push(@scores, $scorefile) if defined $scorefile;
203 foreach my $scorefile (@old) {
208 foreach my $scorefile (@scores) {
222 $scores{$scorefile} = $scoreinfo;
334 my $scorefile = $scoresdir.'/';
[all …]
/dports/games/moria/umoria/util/scores/
H A DREADME4 scorefile to standard output. The second, delscore, will send a copy of the
5 scorefile to standard output, except that the nth entry will be deleted.
7 If you wish to delete an entry from your scorefile, use them as follows.
8 Run "prscore scorefile" to see every entry in the scorefile. Note the index
9 (i.e. rank) of the entry you want to delete. Then run "delscore scorefile
11 Then run "prscore tmp.score" to ensure that the scorefile is OK. You
12 can then copy the tmp.score file over your current scorefile.
14 Note: do not try to run "delscore scorefile n > scorefile". You will lose
15 your scorefile if you do this.
23 scorefile, you may lose an entry when copying the new scorefile over the
[all …]
/dports/deskutils/zim/zim-0.74.3/zim/plugins/
H A Dscoreeditor.py81 self.scorefile = TmpFile('score.ly')
110 scorefile = self.scorefile
118 scorefile.writelines(lines)
123 clogfile = File(scorefile.path[:-3] + '-convertly.log') # len('.ly) == 3
126 convertly.run((scorefile.basename,), cwd=scorefile.dir)
133 logfile = File(scorefile.path[:-3] + '.log') # len('.ly') == 3
136 lilypond.run(('-dlog-file=' + logfile.basename[:-4], scorefile.basename,), cwd=scorefile.dir)
140 pngfile = File(scorefile.path[:-3] + '.png') # len('.ly') == 3
145 path = self.scorefile.path
/dports/games/xlennart/xlennart-1.1.1/
H A DScorelist.c21 FILE *scorefile = fopen(SCOREFILE, "r"); in Scorelist_read() local
24 if (scorefile != NULL) { in Scorelist_read()
26 fscanf(scorefile, "%20s%d%d\n", scores[i].name, in Scorelist_read()
28 fclose(scorefile); in Scorelist_read()
41 FILE *scorefile = fopen(SCOREFILE, "w"); in Scorelist_write() local
43 if (scorefile == NULL) in Scorelist_write()
46 fprintf(scorefile, "%-*s %d %d\n", NAMELEN, in Scorelist_write()
48 fclose(scorefile); in Scorelist_write()
/dports/games/xbill/xbill-2.1/
H A DScorelist.c21 FILE *scorefile = fopen(SCOREFILE, "r"); in Scorelist_read() local
24 if (scorefile != NULL) { in Scorelist_read()
26 fscanf(scorefile, "%20s%d%d\n", scores[i].name, in Scorelist_read()
28 fclose(scorefile); in Scorelist_read()
41 FILE *scorefile = fopen(SCOREFILE, "w"); in Scorelist_write() local
43 if (scorefile == NULL) in Scorelist_write()
46 fprintf(scorefile, "%-*s %d %d\n", NAMELEN, in Scorelist_write()
48 fclose(scorefile); in Scorelist_write()
/dports/biology/tRNAscan-SE/tRNAscan-SE-2.0/src/
H A Dalign_main.c64 char *scorefile; /* file to save scores to */ in main() local
83 scorefile = NULL; in main()
92 case 's': scorefile = optarg; break; in main()
135 if (scorefile != NULL) in main()
136 if ((sfp = fopen(scorefile, "w")) == NULL) in main()
137 Die("Open failed for score output file %s", scorefile); in main()
150 if (scorefile != NULL) in main()
151 printf("Indiv. scores saved to: %s\n", scorefile); in main()
178 if (scorefile != NULL) in main()
212 if (scorefile != NULL) fclose(sfp); in main()
/dports/games/sokoban/sokoban/
H A Dscore.c16 static FILE *scorefile; variable
38 if( (scorefile = fopen( SCOREFILE, "w")) == NULL) in newscore()
41 sfdbn = fileno( scorefile); in newscore()
43 fclose( scorefile); in newscore()
56 if( (scorefile = fopen( SCOREFILE, "r")) == NULL)
85 if( (scorefile = fopen( SCOREFILE, "r")) == NULL) in readscore()
88 sfdbn = fileno( scorefile); in readscore()
94 fclose( scorefile); in readscore()
168 if( (scorefile = fopen( SCOREFILE, "w")) == NULL) in writescore()
171 sfdbn = fileno( scorefile); in writescore()
[all …]
/dports/games/angband/Angband-4.2.2/src/
H A Dscore.c40 ang_file *scorefile; in highscore_read() local
47 scorefile = file_open(fname, MODE_READ, FTYPE_TEXT); in highscore_read()
49 if (!scorefile) return true; in highscore_read()
52 if (file_read(scorefile, (char *)&scores[i], in highscore_read()
56 file_close(scorefile); in highscore_read()
129 ang_file *scorefile; in highscore_write() local
165 scorefile = file_open(new_name, MODE_WRITE, FTYPE_RAW); in highscore_write()
168 if (!scorefile) { in highscore_write()
176 file_write(scorefile, (const char *)scores, sizeof(struct high_score)*n); in highscore_write()
177 file_close(scorefile); in highscore_write()
/dports/editors/emacs-devel/emacs-4d1968b/lib-src/
H A Dupdate-game-score.c179 char *scorefile; in main() local
224 scorefile = malloc (strlen (prefix) + strlen (argv[optind]) + 2); in main()
225 if (!scorefile) in main()
228 char *z = stpcpy (scorefile, prefix); in main()
253 if (lock_file (scorefile, &lockstate) < 0) in main()
256 if (read_scores (scorefile, &scores, &scorecount, &scorealloc) < 0) in main()
258 unlock_file (scorefile, lockstate); in main()
263 unlock_file (scorefile, lockstate); in main()
277 if (write_scores (scorefile, running_sgid ? 0664 : 0644, in main()
280 unlock_file (scorefile, lockstate); in main()
[all …]
/dports/editors/emacs/emacs-27.2/lib-src/
H A Dupdate-game-score.c179 char *scorefile; in main() local
224 scorefile = malloc (strlen (prefix) + strlen (argv[optind]) + 2); in main()
225 if (!scorefile) in main()
228 char *z = stpcpy (scorefile, prefix); in main()
253 if (lock_file (scorefile, &lockstate) < 0) in main()
256 if (read_scores (scorefile, &scores, &scorecount, &scorealloc) < 0) in main()
258 unlock_file (scorefile, lockstate); in main()
263 unlock_file (scorefile, lockstate); in main()
277 if (write_scores (scorefile, running_sgid ? 0664 : 0644, in main()
280 unlock_file (scorefile, lockstate); in main()
[all …]
/dports/audio/denemo/denemo-2.0.6/actions/menus/MainMenu/Educational/Note-Reading/
H A Dinit.scm119 (let ( (scorefile 0)
129 (display (car score) scorefile)
130 (write-char #\: scorefile)
131 (display (cdr score) scorefile)
132 (newline scorefile)
178 (set! scorefile (open-output-file scoreboard_file))
184 (close-output-port scorefile)#t)#f)
/dports/textproc/irstlm/irstlm-5.80.03/scripts/
H A Dmdtsel.sh118 scorefile=$OPTARG
157 echo indfile= $indfile outdfile= $outdfile scorefile= $scorefile useindex= $useindex
162 if [ ! $indfile -o ! $outdfile -o ! $scorefile ]; then
167 if [ -e $scorefile ]; then
211 sort -g -m $workdir/dtsel${pid}-files-*.scores > $scorefile
/dports/games/libretro-o2em/libretro-o2em-f874a75/src/
H A Dscore.c101 void save_highscore(int highscore, char *scorefile) in save_highscore() argument
107 fn = fopen(scorefile,"w"); in save_highscore()
109 fprintf(stderr,"Error opening highscore-file %s: %i\n",scorefile,errno); in save_highscore()
115 fprintf(stderr,"Error writing to highscore-file %s: %i\n",scorefile,errno); in save_highscore()
/dports/games/trojka/trojka/
H A Dhiscore.c20 extern struct scorefile *sfile;
34 struct scorefile *i, *a, *eof; in gameover()
69 struct scorefile *eof, *i; in readscores()
113 struct scorefile *eof, *i; in scorelist()
H A Dhiscore.h12 struct scorefile { /* structure for highscore table*/ struct
18 #define FILE_SIZE (NUMSCORES*sizeof(struct scorefile)) argument
/dports/mail/spamassassin-devel/spamassassin-1ea352210/masses/
H A Dlint-rules-from-freqs195 $scorefile{$1} = $file;
233 $scorefile{concat_rule_lang ($1, $lang)} = $file;
234 $scorefile{$1} = $file;
303 $f = $scorefile{$rule};
326 next if ($warned =~ /lamescore/ && (defined $scorefile{$r}));
/dports/games/xtrojka/xtrojka123/
H A DXTrojka.nl82 !STR STR_R_SCORES "Waarschuwing: Ik kan de scorefile niet inlezen"
83 !STR STR_W_SCORES "Waarschuwing: Ik kan de scorefile niet wegschrijven"
84 !STR STR_L_SCORES "Waarschuwing: Ik kan de scorefile niet locken"
85 !STR STR_C_SCORES "Waarschuwing: Ik kan de scorefile niet aanmaken"
86 !STR STR_O_SCORES "Waarschuwing: Ik kan de scorefile niet openen"
/dports/games/freeciv/freeciv-2.6.6/server/
H A Dreport.c1150 game.server.scorefile); in scan_score_log()
1200 game.server.scorefile, line_nr); in scan_score_log()
1219 game.server.scorefile, line_nr, plr_no); in scan_score_log()
1226 game.server.scorefile, line_nr, plr_no); in scan_score_log()
1237 game.server.scorefile, line_nr); in scan_score_log()
1243 game.server.scorefile, line_nr, plr_no); in scan_score_log()
1250 game.server.scorefile, line_nr, plr_no); in scan_score_log()
1270 game.server.scorefile); in scan_score_log()
1394 score_log->fp = fc_fopen(game.server.scorefile, "r"); in log_civ_score_now()
1413 game.server.scorefile); in log_civ_score_now()
[all …]
/dports/games/freeciv-nox11/freeciv-2.6.6/server/
H A Dreport.c1150 game.server.scorefile); in scan_score_log()
1200 game.server.scorefile, line_nr); in scan_score_log()
1219 game.server.scorefile, line_nr, plr_no); in scan_score_log()
1226 game.server.scorefile, line_nr, plr_no); in scan_score_log()
1237 game.server.scorefile, line_nr); in scan_score_log()
1243 game.server.scorefile, line_nr, plr_no); in scan_score_log()
1250 game.server.scorefile, line_nr, plr_no); in scan_score_log()
1270 game.server.scorefile); in scan_score_log()
1394 score_log->fp = fc_fopen(game.server.scorefile, "r"); in log_civ_score_now()
1413 game.server.scorefile); in log_civ_score_now()
[all …]
/dports/textproc/irstlm/irstlm-5.80.03/src/
H A Ddtsel.cpp130 char *scorefile=NULL; //score file in main() local
160 "score-file", CMDSTRINGTYPE|CMDMSG, &scorefile, "score output file", in main()
161 "s", CMDSTRINGTYPE|CMDMSG, &scorefile, "score output file", in main()
199 if (scorefile==NULL) { in main()
209 if (!scorefile){ in main()
261 mfstream output(scorefile,ios::out); in main()
338 mfstream outd(scorefile,ios::in); string line; in main()
/dports/games/kobodeluxe/KoboDeluxe-0.5.1/
H A Dstates.cpp128 if(scorefile.numProfiles <= 0) in press()
256 scorefile.gather_high_scores(1); in enter()
1091 switch(scorefile.addPlayer(menu.name)) in press()
1250 manage.select_scene(scorefile.last_scene()); in build()
1261 if(scorefile.numProfiles > 0) in build()
1266 for(int i = 0; i < scorefile.numProfiles; ++i) in build()
1267 item(scorefile.name(i), i); in build()
1310 scorefile.select_profile(prefs->last_profile); in open()
1368 scorefile.select_profile(prefs->last_profile); in select()
1450 menu->set_skill(scorefile.profile()->skill); in open()
[all …]
/dports/games/yahtzee/yahtzee/
H A Dmain.c934 char scorefile[200]; in update_scorefile() local
949 sprintf(scorefile, "%s/%s", SCOREDIR, SCOREFNAME); in update_scorefile()
964 lock(scorefile, L_LOCK); in update_scorefile()
966 fp = fopen(scorefile, "r"); in update_scorefile()
1049 if (rename(tmpfile, scorefile)) in update_scorefile()
1055 sprintf(scall, "mv %s %s", tmpfile, scorefile); in update_scorefile()
1059 lock(scorefile, L_UNLOCK); in update_scorefile()
1066 char scorefile[200]; in show_top_scores() local
1073 sprintf(scorefile, "%s/%s", SCOREDIR, SCOREFNAME); in show_top_scores()
1075 if ((fp = fopen(scorefile, "r")) == NULL) in show_top_scores()

12345678910>>...13