emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/play/gamegrid.el


From: Colin Walters
Subject: [Emacs-diffs] Changes to emacs/lisp/play/gamegrid.el
Date: Fri, 03 May 2002 15:30:58 -0400

Index: emacs/lisp/play/gamegrid.el
diff -c emacs/lisp/play/gamegrid.el:1.10 emacs/lisp/play/gamegrid.el:1.11
*** emacs/lisp/play/gamegrid.el:1.10    Mon Apr 29 18:53:44 2002
--- emacs/lisp/play/gamegrid.el Fri May  3 15:30:58 2002
***************
*** 61,66 ****
--- 61,71 ----
  (defvar gamegrid-score-file-length 50
    "Number of high scores to keep")
  
+ (defvar gamegrid-user-score-file-directory "~/.emacs.d/games"
+   "A directory for game scores which can't be shared.
+ If Emacs was built without support for shared game scores, then this
+ directory will be used.")
+ 
  (make-variable-buffer-local 'gamegrid-use-glyphs)
  (make-variable-buffer-local 'gamegrid-use-color)
  (make-variable-buffer-local 'gamegrid-font)
***************
*** 421,428 ****
                                                 exec-directory))
                              #o4000))))
         (target (if have-shared-game-dir
!                    (expand-file-name file game-score-directory)
!                  (let ((f (expand-file-name game-score-directory)))
                     (when (file-writable-p f)
                       (unless (eq (car-safe (file-attributes f))
                                   t)
--- 426,434 ----
                                                 exec-directory))
                              #o4000))))
         (target (if have-shared-game-dir
!                    (expand-file-name file shared-game-score-directory)
!                  (let ((f (expand-file-name
!                            gamegrid-user-score-file-directory)))
                     (when (file-writable-p f)
                       (unless (eq (car-safe (file-attributes f))
                                   t)
***************
*** 439,445 ****
         (expand-file-name "update-game-score" exec-directory)
         nil errbuf nil
         "-m" (int-to-string gamegrid-score-file-length)
!        "-d" (expand-file-name game-score-directory) file
         (int-to-string score)
         (concat
          (user-full-name)
--- 445,454 ----
         (expand-file-name "update-game-score" exec-directory)
         nil errbuf nil
         "-m" (int-to-string gamegrid-score-file-length)
!        "-d" (if have-shared-game-dir
!                 (expand-file-name shared-game-score-directory)
!               (file-name-directory target))
!        file
         (int-to-string score)
         (concat
          (user-full-name)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]