Permalink
Browse files

make the config and other files maximally game-independent

  • Loading branch information...
1 parent 990be33 commit 6c5c971874f1347c86bfac5da1298cf08e03a11f @Mikolaj Mikolaj committed Jul 27, 2011
Showing with 10 additions and 10 deletions.
  1. +1 −1 .gitignore
  2. +1 −1 LambdaHack.cabal
  3. +3 −3 README.markdown
  4. +1 −1 src/Actions.hs
  5. +1 −1 src/Config.hs
  6. +2 −2 src/ConfigDefault.hs
  7. +1 −1 src/{LambdaHack.config.default → config.default}
View
@@ -1,4 +1,4 @@
-LambdaHack.save
+save
dist/
*~
*.swp
View
@@ -5,7 +5,7 @@ license: BSD3
license-file: LICENSE
tested-with: GHC==7.0.3
data-files: LICENSE, CREDITS, DESIGN.markdown, PLAYING.markdown,
- README.markdown, src/LambdaHack.config.default, scores
+ README.markdown, src/config.default, scores
author: Andres Loeh <mail@andres-loeh.de>
maintainer: Andres Loeh <mail@andres-loeh.de>
description: a small roguelike game
View
@@ -32,9 +32,9 @@ Savegame directory
If you don't want LambdaHack to write to the current directory,
create a personal savegame directory (on Linux it's ~/.LambdaHack/).
-and copy the LambdaHack.scores file there. You may also want to
-copy the configuration file src/LambdaHack.config.default to
-~/.LambdaHack/LambdaHack.config and modify it, but be careful changing
+and copy the scores file there. You may also want to
+copy the configuration file src/config.default to
+~/.LambdaHack/config and modify it, but be careful changing
gameplay options --- they can easily unbalance or break the game.
View
@@ -49,7 +49,7 @@ dumpConfig :: Action ()
dumpConfig =
do
config <- gets sconfig
- let fn = "LambdaHack.config.dump"
+ let fn = "config.dump"
liftIO $ Config.dump fn config
abortWith $ "Current configuration dumped to file " ++ fn ++ "."
View
@@ -48,7 +48,7 @@ file :: IO FilePath
file =
do
appData <- getAppUserDataDirectory "LambdaHack"
- return $ combine appData "LambdaHack.config"
+ return $ combine appData "config"
-- | The configuration read from the user configuration file.
-- The default configuration file provides underlying defaults
View
@@ -8,12 +8,12 @@ import Multiline
-- as soon as the config file grows very big.
-- | The string containing the default configuration
--- included from file src/LambdaHack.config.default.
+-- included from file src/config.default.
-- Warning: cabal does not detect that the default config is changed,
-- so touching this file is needed to reinclude config and recompile.
configDefault :: String
configDefault = [multiline|
-#include "LambdaHack.config.default"
+#include "config.default"
|]
@@ -1,5 +1,5 @@
; This is the default config file, included in the binary itself.
-; The game looks for the user config file in ~/.LambdaHack/LambdaHack.config.
+; The game looks for the user config file in ~/.LambdaHack/config.
; We restricts the config file format by insisting that
; options are case-sensitive and permitting only ';' comments.

0 comments on commit 6c5c971

Please sign in to comment.