• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/emacs-93/emacs/lisp/play/

Lines Matching defs:score

66 (defvar gamegrid-score-file-length 50
69 (defvar gamegrid-user-score-file-directory "~/.emacs.d/games"
86 (make-variable-buffer-local 'gamegrid-score-file-length)
426 ;; ;;;;;;;;;;;;;;; high score functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
428 (defun gamegrid-add-score (file score)
429 "Add the current score to the high score file.
433 the score file FILE in this directory, if it doesn't already exist. In
435 `gamegrid-user-score-file-directory' and creates it there, if
438 To add the score file for a game to the system wide shared game
448 (gamegrid-add-score-insecure file score))
450 (gamegrid-add-score-with-update-game-score file score))))
457 ;; `gamegrid-add-score' was supposed to be used in the past and
460 ;; 2. The helper program "update-game-score" is setuid and the
464 ;; "update-game-score" to add the score to the file in the
467 ;; 3. "update-game-score" is setuid, but the file FILE does *not*
469 ;; `gamegrid-add-score-insecure' to create--if necessary--and
473 ;; 4. "update-game-score" is not setuid. Use it to create/update
479 (defun gamegrid-add-score-with-update-game-score (file score)
483 (expand-file-name "update-game-score"
487 (gamegrid-add-score-insecure file score))
489 (file-exists-p (expand-file-name file shared-game-score-directory)))
490 ;; Use the setuid "update-game-score" program to update a
491 ;; system-wide score file.
492 (gamegrid-add-score-with-update-game-score-1 file
493 (expand-file-name file shared-game-score-directory) score))
494 ;; Else: Add the score to a score file in the user's home
500 (directory-file-name gamegrid-user-score-file-directory))
501 (make-directory gamegrid-user-score-file-directory t))
502 (gamegrid-add-score-insecure file score
503 gamegrid-user-score-file-directory))
505 gamegrid-user-score-file-directory)))
513 (gamegrid-add-score-with-update-game-score-1 file f score))))))
515 (defun gamegrid-add-score-with-update-game-score-1 (file target score)
517 (errbuf (generate-new-buffer " *update-game-score loss*"))
534 (expand-file-name "update-game-score" exec-directory)
536 "-m" (int-to-string gamegrid-score-file-length)
538 (expand-file-name shared-game-score-directory)
541 (int-to-string score)
546 (error "Failed to update game score file"))
557 (search-forward (concat (int-to-string score)
562 (defun gamegrid-add-score-insecure (file score &optional directory)
570 score
580 (goto-line (1+ gamegrid-score-file-length))