From 055d6d1d119d7b3604341b6ccd10f2dcdeae553a Mon Sep 17 00:00:00 2001 From: dshaligram Date: Mon, 27 Nov 2006 15:45:45 +0000 Subject: [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 --- crawl-ref/source/AppHdr.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/AppHdr.h') 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. -- cgit v1.2.3-54-g00ecf