diff options
Diffstat (limited to 'chess-common.el')
| -rw-r--r-- | chess-common.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chess-common.el b/chess-common.el index 7de9196..ac48c8e 100644 --- a/chess-common.el +++ b/chess-common.el @@ -63,12 +63,15 @@ ((eq event 'initialize) (let* ((name (car args)) (path (intern (concat "chess-" name "-path"))) + (args (intern (concat "chess-" name "-args"))) proc) (chess-message 'starting-engine name) (unless (and (boundp path) (symbol-value path)) (chess-error 'could-not-find-engine name path)) (setq proc (start-process (concat "chess-" name) - (current-buffer) (symbol-value path))) + (current-buffer) (symbol-value path) + (if (and (boundp args) (symbol-value args)) + (substitute-in-file-name (symbol-value args)) ""))) (chess-message 'starting-engine-done name) proc)) |
