summaryrefslogtreecommitdiffstats
path: root/battlestar/battlestar.6
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1999-07-28 01:45:41 +0000
committerhubertf <hubertf@NetBSD.org>1999-07-28 01:45:41 +0000
commit932e74d4028472671e706b8d64965ef4a4293d0f (patch)
tree7155c281e751417d576084fd2feebae3a4e5159e /battlestar/battlestar.6
parentd0abda98e89948088de49cb3c2f192c15aa4518d (diff)
downloadbsdgames-darwin-932e74d4028472671e706b8d64965ef4a4293d0f.tar.gz
bsdgames-darwin-932e74d4028472671e706b8d64965ef4a4293d0f.zip
This patch improves the handling of save files in battlestar(6), by
allowing the user to choose the name of the save file and specify it on the command line when restoring. It also eliminates a buffer overrun in determining the path to the save file, and any particular arbitrary limit on the name length. In the name of a tidier home directory, the default name is changed from "Bstar" to ".Bstar". Patch supplied in PR 8085 by Joseph Myers <jsm28@cam.ac.uk> Minor modification (s/startup/filename/ in initialize()) by me.
Diffstat (limited to 'battlestar/battlestar.6')
-rw-r--r--battlestar/battlestar.614
1 files changed, 9 insertions, 5 deletions
diff --git a/battlestar/battlestar.6 b/battlestar/battlestar.6
index dde875c0..52cddf5d 100644
--- a/battlestar/battlestar.6
+++ b/battlestar/battlestar.6
@@ -1,4 +1,4 @@
-.\" $NetBSD: battlestar.6,v 1.6 1998/09/10 21:50:35 frueauf Exp $
+.\" $NetBSD: battlestar.6,v 1.7 1999/07/28 01:45:41 hubertf Exp $
.\"
.\" Copyright (c) 1983, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -41,7 +41,8 @@
.Nd a tropical adventure game
.Sh SYNOPSIS
.Nm
-.Op Fl r Em Pq recover a saved game
+.Op Fl r
+.Op Ar saved-file
.Sh DESCRIPTION
.Nm
is an adventure game in the classic style. However, it's slightly less
@@ -122,9 +123,12 @@ will drop the knife you just took.
The two commands "score" and "inven" will print out your current status
in the game.
.Sh SAVING A GAME
-The command "save" will save your game in a file called "Bstar." You
-can recover a saved game by using the "-r" option when you start up the
-game.
+The command "save" will save your game in a file, by default called
+".Bstar" in your home directory. You
+can recover a saved game by using the
+.Fl r
+option when you start up the
+game, or by giving the name of the saved file as an argument.
.Sh DIRECTIONS
The compass directions N, S, E, and W can be used if you have a compass.
If you don't have a compass, you'll have to say R, L, A, or B, which