summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/AppHdr.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-27 15:45:45 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-27 15:45:45 +0000
commit055d6d1d119d7b3604341b6ccd10f2dcdeae553a (patch)
treee1c39035d9e3354acb7b2276f067f5c0f7fb9538 /crawl-ref/source/AppHdr.h
parent3db8e3590abcd199c41ac593b72eb50238c6d2df (diff)
downloadcrawl-ref-055d6d1d119d7b3604341b6ccd10f2dcdeae553a.tar.gz
crawl-ref-055d6d1d119d7b3604341b6ccd10f2dcdeae553a.zip
[1603062] Fixed save_dir not working when LOAD_PACKAGE_CMD is defined (sartak).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@507 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/AppHdr.h')
-rw-r--r--crawl-ref/source/AppHdr.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h
index 602d351444..198b1819fa 100644
--- a/crawl-ref/source/AppHdr.h
+++ b/crawl-ref/source/AppHdr.h
@@ -318,17 +318,14 @@
// to a command to compress and bundle the save game files into a
// single unit... the two %s will be replaced with the players
// save file name. Define LOAD_UNPACKAGE_CMD to undo this process
- // the %s is the same as above.
+ // the %s is the same as above. The second %s in LOAD_UNPACKAGE_CMD
+ // is for the output directory.
//
// PACKAGE_SUFFIX is used when the package file name is needed
//
// Comment these lines out if you want to leave the save files uncompressed.
#define SAVE_PACKAGE_CMD "/usr/bin/zip -m -q -j -1 %s.zip %s.*"
-#ifdef SAVE_DIR_PATH
- #define LOAD_UNPACKAGE_CMD "/usr/bin/unzip -q -o %s.zip -d" SAVE_DIR_PATH
-#else
- #define LOAD_UNPACKAGE_CMD "/usr/bin/unzip -q -o %s.zip"
-#endif
+ #define LOAD_UNPACKAGE_CMD "/usr/bin/unzip -q -o %s.zip -d %s"
#ifdef SAVE_PACKAGE_CMD
// This is used to unpack specific files from the archive.